Qwen/Qwen2.5-1.5B · L17/N2252 · 20261123T090422Z
Experiment 1 of 1 on this neuron, most conclusive first · record
The pole reads the indentation layout of source code: it fires on the low-content boundary tokens of a line inside an indented block - the leading-whitespace token that opens a line (strongest when it opens a '}' or 'return' line) and the token that closes one (' }\n', ';\n', '();\n', '()));\n\n', or a bare '\n' as between records of the scan's repeated arithmetic Q&A list), with weaker firing on a block header's ')' and ' {\n'. Strength tracks how many statement lines the block really has (one line > two lines > empty block), while identifier names, comment wording, indent width, tabs-vs-spaces, CRLF-vs-LF and the word following the block close all leave it unchanged, and line boundaries in prose, markdown lists, tables, verse, hard-wrapped text and mid-line whitespace stay at its floor.
The whole hypothesis
The pole reads the indentation layout of source code: it fires on the low-content boundary tokens of a line inside an indented block - the leading-whitespace token that opens a line (strongest when it opens a '}' or 'return' line) and the token that closes one (' }\n', ';\n', '();\n', '()));\n\n', or a bare '\n' as between records of the scan's repeated arithmetic Q&A list), with weaker firing on a block header's ')' and ' {\n'. Strength tracks how many statement lines the block really has (one line > two lines > empty block), while identifier names, comment wording, indent width, tabs-vs-spaces, CRLF-vs-LF and the word following the block close all leave it unchanged, and line boundaries in prose, markdown lists, tables, verse, hard-wrapped text and mid-line whitespace stay at its floor.
Hard negatives 20/20 rejected · holdouts 4/10 fired (independent observations; 30 probes) · P(useful) 0.88
specificity 1.00 · sensitivity 0.40 · counterfactual reproduction 1.00 · protocol v0.10
}
();
;
()));
{
)
Adversarial review
hard_negative: 20/20 passed; positive_holdout: 4/10 passed; counterfactual: 7/7 passed; lookahead_consistency: 1/1 passed. Failed gates: sensitivity, beats_confound_baseline.
All 38 probes
| Test | Input | Expected | Observed | |
|---|---|---|---|---|
| ✓ | hard negative | Irrigation canals in the valley were rebuilt after the flood. The engineers measured the flow at every gate before the pumps restarted.
The old intake screens were replaced last spring. Crews cleared the silt from the channels, and the county reopened the lower road in April.
Local farmers reported better yields in August, though the eastern plots stayed dry until the second week of September. Prose with paragraph breaks but no indented code block, and the hypothesis says prose line boundaries stay at its floor. |
inactive | 0.292 |
| ✓ | hard negative | Shopping list for the workshop, written on the whiteboard by the door:
- two boxes of wood screws
- a roll of masking tape
- sandpaper, medium grit
- one can of clear varnish
- a set of spring clamps
- spare blades for the saw
Everything fits in the blue cabinet once the boxes are flattened. A markdown bullet list, an inactive class the hypothesis names explicitly, although every item ends in a bare newline token. |
inactive | 0.349 |
| ✓ | hard negative | Notes on the database migration
## Before you begin
Back up the replica and stop the background workers, then wait for the queue to drain.
## During the run
Watch the lag on the replica and the error log on the primary node.
## Afterwards
Restart each worker one at a time and confirm that the counters climb again. Markdown headings and bare blank-line tokens with no code block, another inactive class the hypothesis names. |
inactive | 0.327 |
| ✓ | hard negative | | Region | Rainfall | Yield | Notes |
| --- | --- | --- | --- |
| North | 820 mm | 4.1 t | irrigated |
| South | 640 mm | 3.3 t | rain-fed |
| East | 710 mm | 3.9 t | mixed |
| West | 590 mm | 2.8 t | drought |
The table covers the last five seasons and replaces the appendix printed in the spring bulletin. A markdown table has many row ends but no statement line inside an indented block, so the hypothesis predicts its floor. |
inactive | 0.318 |
| ✓ | hard negative | Slow river, wide and brown,
the bridge hums under the passing trucks.
A heron waits beside the reeds;
the water carries the mill's old dust.
Children count the stones below the weir,
and the evening train goes by without a stop.
Later the lamps come on along the bank,
and the ferry ties up for the night. Verse with short lines ending in punctuation, including a ';\n' close, a class the hypothesis lists as inactive. |
inactive | 0.286 |
| ✓ | hard negative | The committee met on Tuesday to review the proposal for the new library wing, which would replace the old reading room
and add a small auditorium on the ground floor. Most members agreed that the cost estimate was reasonable, though the
schedule seemed optimistic given the state of the roof. A final vote is expected next month, after the architects
present the revised drawings and a short list of materials for the exterior. Hard-wrapped prose whose line breaks fall between words as bare newline tokens, an inactive class the hypothesis names. |
inactive | 0.372 |
| ✓ | hard negative | The proposal was circulated in draft form, and the members were asked to send comments by Friday afternoon. Several reviewers noted that the budget tables were unusually hard to read, and that the appendix was missing a glossary and a list of abbreviations. The chair agreed to collect the notes and to publish a clean copy before the vote. The claimed indentation tokens ' ' and ' ' sit mid-line in prose, which the hypothesis says stays at its floor in mid-line whitespace. |
inactive | 0.295 |
| ✓ | hard negative | /* Reset the retry counter;
close the socket;
flush the buffer before the next read;
reopen the pool when the worker restarts;
release the lock at the end of the pass. */ Semicolon-closed comment lines at column zero sit in no indented statement block, so the hypothesis predicts the floor even though ';\n' is present. |
inactive | 0.347 |
| ✓ | hard negative | String template = "while (open) { read(); write(); } if (done) return; else retry();";
The parser splits the template on spaces and reports any unclosed brace in the log.
logger.debug("template text: " + template); The brace and semicolon triggers appear inside a string literal with no indented block, which the hypothesis says leaves it at the floor. |
inactive | 0.295 |
| ✓ | hard negative | References
Alvarez, M. (2019). Sediment transport in mountain streams after wildfire.
Journal of Hydrology, 44(2), 118-131.
Okafor, T. and Lindqvist, S. (2021). Floodplain mapping with sparse gauges.
Water Resources Research, 57(8), e2020WR028441.
Reid, P. (2022). Channel response to gravel extraction: a review.
Geomorphology Notes, 12(3), 44-59. Hanging indents open prose lines with code-like leading whitespace, yet the hypothesis says prose line boundaries stay at its floor. |
inactive | 0.308 |
| ✓ | hard negative | Plan for the release, as agreed in the stand-up:
freeze the branch on Monday morning
run the regression suite twice before tagging
publish the release notes on Thursday
retire the old build box at the end of the month
tell support to update the troubleshooting page An indented English outline where leading-whitespace tokens open every line but no statement block exists, so the hypothesis predicts the floor. |
inactive | 0.404 |
| ✓ | hard negative | The witness described the morning of the flood to the survey team:
The water came over the lower road before six, and the bridge was already closed to traffic. Nobody could reach the mill, so the crew waited on the hill until the rain eased.
The surveyor wrote the account down and read it back before leaving. A four-space indented block quote in prose: the opening whitespace looks like code indentation, but the hypothesis puts prose at its floor. |
inactive | 0.295 |
| ✓ | hard negative | After the inspection the crew decided to return the pumps to the depot, where a technician would test each unit and
return the faulty ones to the manufacturer for credit. The depot promised to send replacements within a fortnight,
and the crew agreed to return the loaner generator once the new units arrived. The word 'return' only appears as a prose verb and no leading-whitespace token opens its line, so the hypothesis predicts no firing. |
inactive | 0.294 |
| ✓ | hard negative | Bring the stock to a slow simmer;
add the carrots, the thyme and a pinch of salt;
cover the pot for twenty minutes;
season with pepper and a little lemon;
serve with bread and butter.
The broth keeps for three days in the refrigerator. Semicolon-closed lines in a recipe rather than code, and the hypothesis says verse and prose line boundaries stay at its floor. |
inactive | 0.285 |
| ✓ | hard negative | The committee approved the revised plan (see appendix 4)
and forwarded it to the board (chaired by Ms. Okafor)
for final sign-off (scheduled for the second week of March).
A copy goes to the finance office (attention: budget team)
and to the architect (who requested the earlier start date). Line-final ')' comes from prose parentheticals, the wrong role for the block-header trigger, so the hypothesis predicts the floor. |
inactive | 0.374 |
| ✓ | hard negative | To close the method in the editor, put the brace on its own line } and then run the formatter. The formatter aligns it with the opening brace and indents the body by four spaces, which the team style guide requires } in every reviewed change. Closing braces appear mid-line in a single line of prose that describes code, so the hypothesis predicts no firing outside a real indented block. |
inactive | 0.289 |
| ✓ | hard negative | SELECT region, SUM(yield) AS total, COUNT(*) AS plots
FROM harvests
WHERE season = 'summer' AND rainfall > 600
GROUP BY region, soil_type
HAVING COUNT(*) > 3
ORDER BY total DESC
LIMIT 20; Flat SQL with no indentation and no per-line statement terminators, so the hypothesis predicts its floor despite the line structure. |
inactive | 0.291 |
| ✓ | hard negative | <div class="card report">
<h2>Quarterly harvest report</h2>
<p>The northern plots rose by four percent over the season.</p>
<ul>
<li>North: 4.1 t</li>
<li>South: 3.3 t</li>
<li>East: 3.9 t</li>
</ul>
</div> Flat markup whose lines open at column zero and close with tags rather than the claimed statement terminators, so the hypothesis predicts the floor. |
inactive | 0.327 |
| ✓ | hard negative | region,rainfall_mm,yield_t,season
North,820,4.1,summer
South,640,3.3,summer
East,710,3.9,summer
West,590,2.8,summer
North,760,3.8,winter
South,610,3.1,winter
East,680,3.5,winter
West,540,2.6,winter CSV rows give bare line-boundary tokens without indentation or statements, which the hypothesis places at its floor. |
inactive | 0.292 |
| ✓ | hard negative | Minutes of the water board, third meeting of the season.
The chair opened the meeting at seven and read the minutes of the previous session, which were approved without change. The treasurer reported that the reserve fund stands at eighteen thousand, a little below the target set in the spring.
| Item | Estimate | Spent |
| --- | --- | --- |
| Pump repair | 6,000 | 5,400 |
| Culvert clearing | 3,200 | 3,150 |
| Survey | 2,000 | 1,850 |
The engineer described the condition of the lower culvert and recommended that the clearing be repeated before the autumn rains. She noted that the survey team found no new cracks in the apron and that the gauges upstream were reading within the normal range.
A resident asked whether the footbridge could be widened, and the chair said the question would go to the county. The meeting closed at half past eight and the next one was set for the first Tuesday of the month. A long prose passage with attached paragraph breaks and table rows, its line boundaries far from any indented code block, which the hypothesis leaves at its floor. |
inactive | 0.415 |
| ✗ | positive holdout | def summarize(rows, limit, key):
if not rows:
return None
ordered = sorted(rows, key=lambda r: r.total)
top = ordered[-limit:]
total = sum(r.total for r in top)
return {"count": len(top), "total": total} An indented Python function whose 'return' line is opened by the claimed ' ' token, the hypothesis's strongest case in a language absent from the examples. |
active | 1.597 |
| ✓ | positive holdout | fn depth(node: &Node) -> usize {
let mut best = 0;
for child in &node.children {
let d = depth(child) + 1;
if d > best { best = d; }
}
best
} Nested brace blocks with claimed ' ', ' {\n' and ' }\n' tokens in a new language, expressing the claimed layout the hypothesis describes. |
active | 8.302 |
| ✗ | positive holdout | func (s *Server) handle(w http.ResponseWriter, r *http.Request) {
id := r.URL.Query().Get("id")
if id == "" {
http.Error(w, "missing id", http.StatusBadRequest)
return
}
fmt.Fprintf(w, "item %s", id)
} A tab-indented Go block whose close line is opened by a bare tab token, and the hypothesis says tabs versus spaces leave the firing unchanged. |
active | 0.290 |
| ✓ | positive holdout | public int countMissing(List<String> names) {
int missing = 0;
for (String n : names) {
if (n == null || n.isEmpty()) {
missing++;
}
}
return missing;
} CRLF line endings on a nested block with claimed ' ' and ' ' tokens, and the hypothesis says CRLF versus LF changes nothing. |
active | 6.004 |
| ✓ | positive holdout | function render(list) {
const parts = [];
for (const item of list) {
parts.push("<li>" + item.name + "</li>");
}
return parts.join("");
}
function send(html, node) {
node.innerHTML = html;
node.hidden = false;
} Two-space indentation and a block close followed by a new declaration word, both cases the hypothesis says leave the firing unchanged. |
active | 3.908 |
| ✗ | positive holdout | void configure(struct settings *s, const struct defaults *d)
{
s->timeout = d->timeout;
s->retries = d->retries;
s->verbose = false;
s->max_batch = 256;
s->log_level = LOG_INFO;
} Several plain statement lines in a method body with no nested brace block, a case the hypothesis says fires. |
active | 0.303 |
| ✗ | positive holdout | protected synchronized void commitBatch(List<Record> batch, boolean flush) {
if (batch.isEmpty() && flush) {
return;
}
store(batch);
} A block header's ')' and ' {\n' plus a ' '-opened return line and ' }\n' close, which the hypothesis predicts fires. |
active | 0.292 |
| ✗ | positive holdout | public function run($ctx)
{
$this->prepare($ctx);
$this->validate($ctx);
$this->log($ctx);
$this->dispatch($ctx);
return $this->result;
} Indented lines closing with ');\n' inside a method body, claimed close tokens in a new context. |
active | 1.546 |
| ✓ | positive holdout | Calculate the sum of 138 and 47.
185
What is the product of 26 and 14?
364
Find the remainder when 9173 is divided by 39.
8
What is the sum of 402 and 91?
493
Calculate the remainder when 5612 is divided by 17.
2 The arithmetic Q&A record list the hypothesis names as a bare-newline carve-out, written with fresh numbers. |
active | 2.446 |
| ✗ | positive holdout | package org.example.report;
import java.util.List;
import java.util.ArrayList;
public class ReportBuilder {
private final List<String> lines = new ArrayList<>();
public void addSection(String title, List<String> values) {
StringBuilder heading = new StringBuilder();
heading.append(title);
lines.add(heading.toString());
for (String value : values) {
if (value == null || value.isEmpty()) {
continue;
}
String trimmed = value.trim();
String row = trimmed + ",";
lines.add(row);
}
lines.add("");
}
public String build() {
return String.join(",", lines);
}
} The feature sits deep in a long nested Java class with claimed indentation and '();\n' tokens, testing that the layout reading holds far from the probe's start. |
active | 1.125 |
| ✓ | counterfactual | package org.example.cache; import java.util.HashMap; import java.util.Map; /** * A small cache with a fixed capacity. */ public final class Cache { private final Map<String, Object> store = new HashMap<>(); private Cache() { } public static Object pick(Map<String, Object> m, String key) { Object a = m.get(key); Object b = m.get(key); Object c = m.get(key); return c; } } -> package org.example.cache; import java.util.HashMap; import java.util.Map; /** * A small cache with a fixed capacity. */ public final class Cache { private final Map<String, Object> store = new HashMap<>(); private Cache() { } public static Object pick(Map<String, Object> m, String key) { Object a = m.get(key); Object b = m.get(key); Object c = m.get(key); return c; } } | Δ 0.42 | Δ 0.42 |
| ✓ | counterfactual | package org.example.cache; import java.util.HashMap; import java.util.Map; /** * A small cache with a fixed capacity. */ public final class Cache { private final Map<String, Object> store = new HashMap<>(); private Cache() { } public static int walk(Map<String, Object> m, String key) { int total = 0; total += 1; total += 2; return total; } } -> package org.example.cache; import java.util.HashMap; import java.util.Map; /** * A small cache with a fixed capacity. */ public final class Cache { private final Map<String, Object> store = new HashMap<>(); private Cache() { } public static int walk(Map<String, Object> m, String key) { int total = 0; total += 1; total += 2; return total; } } | Δ 0.29 | Δ 0.29 |
| ✓ | counterfactual | package org.example.cache; import java.util.HashMap; import java.util.Map; /** * A small cache with a fixed capacity. */ public final class Cache { private final Map<String, Object> store = new HashMap<>(); private Cache() { } public static Object lookup(Map<String, Object> m, String key) { if (m.containsKey(key)) { Object value = m.get(key); return value; } return null; } } -> package org.example.cache; import java.util.HashMap; import java.util.Map; /** * A small cache with a fixed capacity. */ public final class Cache { private final Map<String, Object> store = new HashMap<>(); private Cache() { } public static Object lookup(Map<String, Object> m, String key) { if (m.containsKey(key)) { } return null; } } | Δ 0.38 | Δ 0.38 |
| ✓ | counterfactual | package org.example.cache; import java.util.HashMap; import java.util.Map; /** * A small cache with a fixed capacity. */ public final class Cache { private final Map<String, Object> store = new HashMap<>(); private Cache() { } public static Object find(Map<String, Object> m, String key) { if (m.containsKey(key)) { Object value = m.get(key); return value; } return null; } } -> package org.example.cache; import java.util.HashMap; import java.util.Map; /** * A small cache with a fixed capacity. */ public final class Cache { private final Map<String, Object> store = new HashMap<>(); private Cache() { } public static Object find(Map<String, Object> m, String key) { if (m.containsKey(key)) { return null; } return null; } } | Δ 0.27 | Δ 0.27 |
| ✓ | counterfactual | package org.example.cache; import java.util.HashMap; import java.util.Map; /** * A small cache with a fixed capacity. */ public final class Cache { private final Map<String, Object> store = new HashMap<>(); private Cache() { } public static Object lookup(Map<String, Object> m, String key) { if (m.containsKey(key)) { Object value = m.get(key); return value; } return null; } } -> package org.example.cache; import java.util.HashMap; import java.util.Map; /** * A small cache with a fixed capacity. */ public final class Cache { private final Map<String, Object> store = new HashMap<>(); private Cache() { } public static Object lookup(Map<String, Object> m, String key) { if (m.containsKey(key)) { Object value = m.get(key); return value; } return null; } } | Δ -0.00 | Δ -0.00 |
| ✓ | counterfactual | package org.example.cache; import java.util.HashMap; import java.util.Map; /** * A small cache with a fixed capacity. */ public final class Cache { private final Map<String, Object> store = new HashMap<>(); private Cache() { } public static Object lookup(Map<String, Object> m, String key) { if (m.containsKey(key)) { Object value = m.get(key); return value; } return null; } } -> package org.example.cache; import java.util.HashMap; import java.util.Map; /** * A tiny store holding at most one item. */ public final class Cache { private final Map<String, Object> store = new HashMap<>(); private Cache() { } public static Object lookup(Map<String, Object> m, String key) { if (m.containsKey(key)) { Object value = m.get(key); return value; } return null; } } | Δ -0.01 | Δ -0.01 |
| ✓ | counterfactual | // Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.gsa; import android.accounts.Account; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.text.TextUtils; import org.chromium.base.PackageUtils; import org.chromium.sync.signin.ChromeSigninController; /** * A class responsible fore representing the current state of Chrome's integration with GSA. */ public class GSAState { private static final int GSA_VERSION_FOR_DOCUMENT = 300401021; private static final int GMS_CORE_VERSION = 6577010; static final String SEARCH_INTENT_PACKAGE = "com.google.android.googlequicksearchbox"; private static final String GMS_CORE_PACKAGE = "com.google.android.gms"; static final String SEARCH_INTENT_ACTION = "com.google.android.googlequicksearchbox.TEXT_ASSIST"; /** * An instance of GSAState class encapsulating knowledge about the current status. */ private static GSAState sGSAState; /** * The application context to use. */ private final Context mContext; /** * Caches the result of a computation on whether GSA is available. */ private Boolean mGsaAvailable; /** * The Google account being used by GSA according to the latest update we have received. * This may be null. */ private String mGsaAccount; /** * Returns the singleton instance of GSAState and creates one if necessary. * @param context The context to use. * @return The state object. */ public static GSAState getInstance(Context context) { if (sGSAState == null) { sGSAState = new GSAState(context); } return sGSAState; } /* Private constructor, since this is a singleton */ private GSAState(Context context) { mContext = context.getApplicationContext(); } /** * Update the GSA logged in account name and whether we are in GSA holdback. * @param gsaAccount The email address of the logged in account. */ public void setGsaAccount(String gsaAccount) { mGsaAccount = gsaAccount; } /** * @return Whether GSA and Chrome are logged in with the same account. The situation where * both are logged out is not considered a match. */ public boolean doesGsaAccountMatchChrome() { Account chromeUser = ChromeSigninController.get(mContext).getSignedInUser(); return chromeUser != null && !TextUtils.isEmpty(mGsaAccount) && TextUtils.equals( chromeUser.name, mGsaAccount); } /** * @return The current GSA account. May return null if GSA hasn't replied yet. */ public String getGsaAccount() { return mGsaAccount; } /** * This is used to check whether GSA -> // Copyright 2015 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.gsa; import android.accounts.Account; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.text.TextUtils; import org.chromium.base.PackageUtils; import org.chromium.sync.signin.ChromeSigninController; /** * A class responsible fore representing the current state of Chrome's integration with GSA. */ public class GSAState { private static final int GSA_VERSION_FOR_DOCUMENT = 300401021; private static final int GMS_CORE_VERSION = 6577010; static final String SEARCH_INTENT_PACKAGE = "com.google.android.googlequicksearchbox"; private static final String GMS_CORE_PACKAGE = "com.google.android.gms"; static final String SEARCH_INTENT_ACTION = "com.google.android.googlequicksearchbox.TEXT_ASSIST"; /** * An instance of GSAState class encapsulating knowledge about the current status. */ private static GSAState sGSAState; /** * The application context to use. */ private final Context mContext; /** * Caches the result of a computation on whether GSA is available. */ private Boolean mGsaAvailable; /** * The Google account being used by GSA according to the latest update we have received. * This may be null. */ private String mGsaAccount; /** * Returns the singleton instance of GSAState and creates one if necessary. * @param context The context to use. * @return The state object. */ public static GSAState getInstance(Context context) { if (sGSAState == null) { } return sGSAState; } /* Private constructor, since this is a singleton */ private GSAState(Context context) { mContext = context.getApplicationContext(); } /** * Update the GSA logged in account name and whether we are in GSA holdback. * @param gsaAccount The email address of the logged in account. */ public void setGsaAccount(String gsaAccount) { mGsaAccount = gsaAccount; } /** * @return Whether GSA and Chrome are logged in with the same account. The situation where * both are logged out is not considered a match. */ public boolean doesGsaAccountMatchChrome() { Account chromeUser = ChromeSigninController.get(mContext).getSignedInUser(); return chromeUser != null && !TextUtils.isEmpty(mGsaAccount) && TextUtils.equals( chromeUser.name, mGsaAccount); } /** * @return The current GSA account. May return null if GSA hasn't replied yet. */ public String getGsaAccount() { return mGsaAccount; } /** * This is used to check whether GSA | Δ 0.37 | Δ 0.37 |
| ✓ | lookahead consistency | package org.example.cache;
import java.util.HashMap;
import java.util.Map;
/**
* A small cache with a fixed capacity.
*/
public final class Cache {
private final Map<String, Object> store = new HashMap<>();
private Cache() {
}
public static Object pick(Map<String, Object> m, String key) {
Object a = m.get(key);
Object b = m.get(key);
Object c = m.get(key);
return c;
}
}
; package org.example.cache;
import java.util.HashMap;
import java.util.Map;
/**
* A small cache with a fixed capacity.
*/
public final class Cache {
private final Map<String, Object> store = new HashMap<>();
private Cache() {
}
public static int walk(Map<String, Object> m, String key) {
int total = 0;
total += 1;
total += 2;
return total;
}
}
; package org.example.cache;
import java.util.HashMap;
import java.util.Map;
/**
* A small cache with a fixed capacity.
*/
public final class Cache {
private final Map<String, Object> store = new HashMap<>();
private Cache() {
}
public static Object lookup(Map<String, Object> m, String key) {
if (m.containsKey(key)) {
Object value = m.get(key);
return value;
}
return null;
}
}
; package org.example.cache;
import java.util.HashMap;
import java.util.Map;
/**
* A small cache with a fixed capacity.
*/
public final class Cache {
private final Map<String, Object> store = new HashMap<>();
private Cache() {
}
public static Object find(Map<String, Object> m, String key) {
if (m.containsKey(key)) {
Object value = m.get(key);
return value;
}
return null;
}
}
; package org.example.cache;
import java.util.HashMap;
import java.util.Map;
/**
* A small cache with a fixed capacity.
*/
public final class Cache {
private final Map<String, Object> store = new HashMap<>();
private Cache() {
}
public static Object lookup(Map<String, Object> m, String key) {
if (m.containsKey(key)) {
Object value = m.get(key);
return value;
}
return null;
}
}
; package org.example.cache;
import java.util.HashMap;
import java.util.Map;
/**
* A small cache with a fixed capacity.
*/
public final class Cache {
private final Map<String, Object> store = new HashMap<>();
private Cache() {
}
public static Object lookup(Map<String, Object> m, String key) {
if (m.containsKey(key)) {
Object value = m.get(key);
return value;
}
return null;
}
}
; // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.gsa;
import android.accounts.Account;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.text.TextUtils;
import org.chromium.base.PackageUtils;
import org.chromium.sync.signin.ChromeSigninController;
/**
* A class responsible fore representing the current state of Chrome's integration with GSA.
*/
public class GSAState {
private static final int GSA_VERSION_FOR_DOCUMENT = 300401021;
private static final int GMS_CORE_VERSION = 6577010;
static final String SEARCH_INTENT_PACKAGE = "com.google.android.googlequicksearchbox";
private static final String GMS_CORE_PACKAGE = "com.google.android.gms";
static final String SEARCH_INTENT_ACTION =
"com.google.android.googlequicksearchbox.TEXT_ASSIST";
/**
* An instance of GSAState class encapsulating knowledge about the current status.
*/
private static GSAState sGSAState;
/**
* The application context to use.
*/
private final Context mContext;
/**
* Caches the result of a computation on whether GSA is available.
*/
private Boolean mGsaAvailable;
/**
* The Google account being used by GSA according to the latest update we have received.
* This may be null.
*/
private String mGsaAccount;
/**
* Returns the singleton instance of GSAState and creates one if necessary.
* @param context The context to use.
* @return The state object.
*/
public static GSAState getInstance(Context context) {
if (sGSAState == null) {
sGSAState = new GSAState(context);
}
return sGSAState;
}
/* Private constructor, since this is a singleton */
private GSAState(Context context) {
mContext = context.getApplicationContext();
}
/**
* Update the GSA logged in account name and whether we are in GSA holdback.
* @param gsaAccount The email address of the logged in account.
*/
public void setGsaAccount(String gsaAccount) {
mGsaAccount = gsaAccount;
}
/**
* @return Whether GSA and Chrome are logged in with the same account. The situation where
* both are logged out is not considered a match.
*/
public boolean doesGsaAccountMatchChrome() {
Account chromeUser = ChromeSigninController.get(mContext).getSignedInUser();
return chromeUser != null && !TextUtils.isEmpty(mGsaAccount) && TextUtils.equals(
chromeUser.name, mGsaAccount);
}
/**
* @return The current GSA account. May return null if GSA hasn't replied yet.
*/
public String getGsaAccount() {
return mGsaAccount;
}
/**
* This is used to check whether GSA claimed retrospective; measured retrospective (KL=8.476e-05, tokens=[' m', ' Object', ' total', ' System', ' }\n']) |
Minimal pairs
| # | Base → counterfactual | Expected Δ | Observed Δ |
|---|---|---|---|
| 1 | package org.example.cache;
import java.util.HashMap;
import java.util.Map;
/**
* A small cache with a fixed capacity.
*/
public final class Cache {
private final Map<String, Object> store = new HashMap<>();
private Cache() {
}
public static Object pick(Map<String, Object> m, String key) {
Object a = m.get(key);
Object b = m.get(key);
Object c = m.get(key);
return c;
}
}
→ package org.example.cache;
import java.util.HashMap;
import java.util.Map;
/**
* A small cache with a fixed capacity.
*/
public final class Cache {
private final Map<String, Object> store = new HashMap<>();
private Cache() {
}
public static Object pick(Map<String, Object> m, String key) {
Object a = m.get(key); Object b = m.get(key); Object c = m.get(key);
return c;
}
}
|
0.42 | 0.42 |
| 2 | package org.example.cache;
import java.util.HashMap;
import java.util.Map;
/**
* A small cache with a fixed capacity.
*/
public final class Cache {
private final Map<String, Object> store = new HashMap<>();
private Cache() {
}
public static int walk(Map<String, Object> m, String key) {
int total = 0;
total += 1;
total += 2;
return total;
}
}
→ package org.example.cache;
import java.util.HashMap;
import java.util.Map;
/**
* A small cache with a fixed capacity.
*/
public final class Cache {
private final Map<String, Object> store = new HashMap<>();
private Cache() {
}
public static int walk(Map<String, Object> m, String key) {
int total = 0; total += 1; total += 2;
return total;
}
}
|
0.29 | 0.29 |
| 3 | package org.example.cache;
import java.util.HashMap;
import java.util.Map;
/**
* A small cache with a fixed capacity.
*/
public final class Cache {
private final Map<String, Object> store = new HashMap<>();
private Cache() {
}
public static Object lookup(Map<String, Object> m, String key) {
if (m.containsKey(key)) {
Object value = m.get(key);
return value;
}
return null;
}
}
→ package org.example.cache;
import java.util.HashMap;
import java.util.Map;
/**
* A small cache with a fixed capacity.
*/
public final class Cache {
private final Map<String, Object> store = new HashMap<>();
private Cache() {
}
public static Object lookup(Map<String, Object> m, String key) {
if (m.containsKey(key)) {
}
return null;
}
}
|
0.38 | 0.38 |
| 4 | package org.example.cache;
import java.util.HashMap;
import java.util.Map;
/**
* A small cache with a fixed capacity.
*/
public final class Cache {
private final Map<String, Object> store = new HashMap<>();
private Cache() {
}
public static Object find(Map<String, Object> m, String key) {
if (m.containsKey(key)) {
Object value = m.get(key);
return value;
}
return null;
}
}
→ package org.example.cache;
import java.util.HashMap;
import java.util.Map;
/**
* A small cache with a fixed capacity.
*/
public final class Cache {
private final Map<String, Object> store = new HashMap<>();
private Cache() {
}
public static Object find(Map<String, Object> m, String key) {
if (m.containsKey(key)) {
return null;
}
return null;
}
}
|
0.27 | 0.27 |
| 5 | package org.example.cache;
import java.util.HashMap;
import java.util.Map;
/**
* A small cache with a fixed capacity.
*/
public final class Cache {
private final Map<String, Object> store = new HashMap<>();
private Cache() {
}
public static Object lookup(Map<String, Object> m, String key) {
if (m.containsKey(key)) {
Object value = m.get(key);
return value;
}
return null;
}
}
→ package org.example.cache;
import java.util.HashMap;
import java.util.Map;
/**
* A small cache with a fixed capacity.
*/
public final class Cache {
private final Map<String, Object> store = new HashMap<>();
private Cache() {
}
public static Object lookup(Map<String, Object> m, String key) {
if (m.containsKey(key)) {
Object value = m.get(key);
return value;
}
return null;
}
}
|
-0.00 | -0.00 |
| 6 | package org.example.cache;
import java.util.HashMap;
import java.util.Map;
/**
* A small cache with a fixed capacity.
*/
public final class Cache {
private final Map<String, Object> store = new HashMap<>();
private Cache() {
}
public static Object lookup(Map<String, Object> m, String key) {
if (m.containsKey(key)) {
Object value = m.get(key);
return value;
}
return null;
}
}
→ package org.example.cache;
import java.util.HashMap;
import java.util.Map;
/**
* A tiny store holding at most one item.
*/
public final class Cache {
private final Map<String, Object> store = new HashMap<>();
private Cache() {
}
public static Object lookup(Map<String, Object> m, String key) {
if (m.containsKey(key)) {
Object value = m.get(key);
return value;
}
return null;
}
}
|
-0.01 | -0.01 |
| 7 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.gsa;
import android.accounts.Account;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.text.TextUtils;
import org.chromium.base.PackageUtils;
import org.chromium.sync.signin.ChromeSigninController;
/**
* A class responsible fore representing the current state of Chrome's integration with GSA.
*/
public class GSAState {
private static final int GSA_VERSION_FOR_DOCUMENT = 300401021;
private static final int GMS_CORE_VERSION = 6577010;
static final String SEARCH_INTENT_PACKAGE = "com.google.android.googlequicksearchbox";
private static final String GMS_CORE_PACKAGE = "com.google.android.gms";
static final String SEARCH_INTENT_ACTION =
"com.google.android.googlequicksearchbox.TEXT_ASSIST";
/**
* An instance of GSAState class encapsulating knowledge about the current status.
*/
private static GSAState sGSAState;
/**
* The application context to use.
*/
private final Context mContext;
/**
* Caches the result of a computation on whether GSA is available.
*/
private Boolean mGsaAvailable;
/**
* The Google account being used by GSA according to the latest update we have received.
* This may be null.
*/
private String mGsaAccount;
/**
* Returns the singleton instance of GSAState and creates one if necessary.
* @param context The context to use.
* @return The state object.
*/
public static GSAState getInstance(Context context) {
if (sGSAState == null) {
sGSAState = new GSAState(context);
}
return sGSAState;
}
/* Private constructor, since this is a singleton */
private GSAState(Context context) {
mContext = context.getApplicationContext();
}
/**
* Update the GSA logged in account name and whether we are in GSA holdback.
* @param gsaAccount The email address of the logged in account.
*/
public void setGsaAccount(String gsaAccount) {
mGsaAccount = gsaAccount;
}
/**
* @return Whether GSA and Chrome are logged in with the same account. The situation where
* both are logged out is not considered a match.
*/
public boolean doesGsaAccountMatchChrome() {
Account chromeUser = ChromeSigninController.get(mContext).getSignedInUser();
return chromeUser != null && !TextUtils.isEmpty(mGsaAccount) && TextUtils.equals(
chromeUser.name, mGsaAccount);
}
/**
* @return The current GSA account. May return null if GSA hasn't replied yet.
*/
public String getGsaAccount() {
return mGsaAccount;
}
/**
* This is used to check whether GSA → // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.gsa;
import android.accounts.Account;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.text.TextUtils;
import org.chromium.base.PackageUtils;
import org.chromium.sync.signin.ChromeSigninController;
/**
* A class responsible fore representing the current state of Chrome's integration with GSA.
*/
public class GSAState {
private static final int GSA_VERSION_FOR_DOCUMENT = 300401021;
private static final int GMS_CORE_VERSION = 6577010;
static final String SEARCH_INTENT_PACKAGE = "com.google.android.googlequicksearchbox";
private static final String GMS_CORE_PACKAGE = "com.google.android.gms";
static final String SEARCH_INTENT_ACTION =
"com.google.android.googlequicksearchbox.TEXT_ASSIST";
/**
* An instance of GSAState class encapsulating knowledge about the current status.
*/
private static GSAState sGSAState;
/**
* The application context to use.
*/
private final Context mContext;
/**
* Caches the result of a computation on whether GSA is available.
*/
private Boolean mGsaAvailable;
/**
* The Google account being used by GSA according to the latest update we have received.
* This may be null.
*/
private String mGsaAccount;
/**
* Returns the singleton instance of GSAState and creates one if necessary.
* @param context The context to use.
* @return The state object.
*/
public static GSAState getInstance(Context context) {
if (sGSAState == null) {
}
return sGSAState;
}
/* Private constructor, since this is a singleton */
private GSAState(Context context) {
mContext = context.getApplicationContext();
}
/**
* Update the GSA logged in account name and whether we are in GSA holdback.
* @param gsaAccount The email address of the logged in account.
*/
public void setGsaAccount(String gsaAccount) {
mGsaAccount = gsaAccount;
}
/**
* @return Whether GSA and Chrome are logged in with the same account. The situation where
* both are logged out is not considered a match.
*/
public boolean doesGsaAccountMatchChrome() {
Account chromeUser = ChromeSigninController.get(mContext).getSignedInUser();
return chromeUser != null && !TextUtils.isEmpty(mGsaAccount) && TextUtils.equals(
chromeUser.name, mGsaAccount);
}
/**
* @return The current GSA account. May return null if GSA hasn't replied yet.
*/
public String getGsaAccount() {
return mGsaAccount;
}
/**
* This is used to check whether GSA |
0.37 | 0.37 |
Read more
Δ is the base prompt's peak positive-pole strength minus the counterfactual's, as a fraction of the max activation.
Top-activating examples
Hover a token for its value.
-
7.90
… SAState getInstance(Context context) {↵ if (sGSAState == null) {↵ sGSAState = new GSAState(context);↵ }↵ return sGSAState;↵ }↵↵ …
All 669 tokens
// Copyright 2015 The Chromium Authors. All rights reserved.↵// Use of this source code is governed by a BSD-style license that can be↵// found in the LICENSE file.↵↵package org.chromium.chrome.browser.gsa;↵↵import android.accounts.Account;↵import android.content.Context;↵import android.content.Intent;↵import android.content.pm.PackageManager;↵import android.content.pm.ResolveInfo;↵import android.text.TextUtils;↵↵import org.chromium.base.PackageUtils;↵import org.chromium.sync.signin.ChromeSigninController;↵↵/**↵ * A class responsible fore representing the current state of Chrome's integration with GSA.↵ */↵public class GSAState {↵ private static final int GSA_VERSION_FOR_DOCUMENT = 300401021;↵ private static final int GMS_CORE_VERSION = 6577010;↵↵ static final String SEARCH_INTENT_PACKAGE = "com.google.android.googlequicksearchbox";↵ private static final String GMS_CORE_PACKAGE = "com.google.android.gms";↵↵ static final String SEARCH_INTENT_ACTION =↵ "com.google.android.googlequicksearchbox.TEXT_ASSIST";↵↵ /**↵ * An instance of GSAState class encapsulating knowledge about the current status.↵ */↵ private static GSAState sGSAState;↵↵ /**↵ * The application context to use.↵ */↵ private final Context mContext;↵↵ /**↵ * Caches the result of a computation on whether GSA is available.↵ */↵ private Boolean mGsaAvailable;↵↵ /**↵ * The Google account being used by GSA according to the latest update we have received.↵ * This may be null.↵ */↵ private String mGsaAccount;↵↵ /**↵ * Returns the singleton instance of GSAState and creates one if necessary.↵ * @param context The context to use.↵ * @return The state object.↵ */↵ public static GSAState getInstance(Context context) {↵ if (sGSAState == null) {↵ sGSAState = new GSAState(context);↵ }↵ return sGSAState;↵ }↵↵ /* Private constructor, since this is a singleton */↵ private GSAState(Context context) {↵ mContext = context.getApplicationContext();↵ }↵↵ /**↵ * Update the GSA logged in account name and whether we are in GSA holdback.↵ * @param gsaAccount The email address of the logged in account.↵ */↵ public void setGsaAccount(String gsaAccount) {↵ mGsaAccount = gsaAccount;↵ }↵↵ /**↵ * @return Whether GSA and Chrome are logged in with the same account. The situation where↵ * both are logged out is not considered a match.↵ */↵ public boolean doesGsaAccountMatchChrome() {↵ Account chromeUser = ChromeSigninController.get(mContext).getSignedInUser();↵ return chromeUser != null && !TextUtils.isEmpty(mGsaAccount) && TextUtils.equals(↵ chromeUser.name, mGsaAccount);↵ }↵↵ /**↵ * @return The current GSA account. May return null if GSA hasn't replied yet.↵ */↵ public String getGsaAccount() {↵ return mGsaAccount;↵ }↵↵ /**↵ * This is used to check whether GSA
Values
Token Positive-pole strength SA0.271 State0.136 getInstance0.106 (Context0.000 context0.203 )0.000 {↵0.001 0.767 if0.000 (0.000 s0.000 G0.021 SA0.000 State0.000 ==0.000 null2.579 )4.956 {↵4.145 2.063 s0.307 G0.007 SA0.000 State0.344 =0.000 new0.002 G0.026 SA0.072 State0.003 (context0.000 );↵1.816 7.899 }↵4.761 6.204 return0.000 s0.000 G0.000 SA0.000 State0.000 ;↵0.000 0.000 }↵↵0.000 -
6.63
… {↵ httpRequest = type.newInstance();↵ } catch (Exception e) {↵ throw new RuntimeException(e);↵ }↵ httpRequest.setURI(uri);↵ }↵ return httpRequest;↵ }↵}
All 523 tokens
/*↵ * Copyright 2016 the original author or authors.↵ *↵ * Licensed under the Apache License, Version 2.0 (the "License");↵ * you may not use this file except in compliance with the License.↵ * You may obtain a copy of the License at↵ *↵ * http://www.apache.org/licenses/LICENSE-2.0↵ *↵ * Unless required by applicable law or agreed to in writing, software↵ * distributed under the License is distributed on an "AS IS" BASIS,↵ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.↵ * See the License for the specific language governing permissions and↵ * limitations under the License.↵ */↵↵package io.restassured.internal.http;↵↵import org.apache.http.HttpRequest;↵import org.apache.http.client.methods.HttpPatch;↵import org.apache.http.client.methods.HttpPost;↵import org.apache.http.client.methods.HttpPut;↵import org.apache.http.client.methods.HttpRequestBase;↵↵import java.net.URI;↵import java.util.HashMap;↵import java.util.Map;↵↵import static io.restassured.http.Method.*;↵import static io.restassured.internal.assertion.AssertParameter.notNull;↵import static org.apache.commons.lang3.StringUtils.trimToNull;↵import static org.apache.commons.lang3.StringUtils.upperCase;↵↵/**↵ * Enumeration of valid HTTP methods that may be used in REST Assured.↵ *↵ * @author <a href='mailto:████████'>Tom Nichols</a> (original author)↵ * @author Johan Haleby↵ */↵public class HttpRequestFactory {↵ private static final Map<String, Class<? extends HttpRequestBase>> HTTP_METHOD_TO_HTTP_REQUEST_TYPE =↵ new HashMap<String, Class<? extends HttpRequestBase>>() {{↵ put(PUT.name(), HttpPut.class);↵ put(POST.name(), HttpPost.class);↵ put(PATCH.name(), HttpPatch.class);↵ }};↵↵ /**↵ * Get the HttpRequest class that represents this request type.↵ *↵ * @return a non-abstract class that implements {@link HttpRequest}↵ */↵ static HttpRequestBase createHttpRequest(URI uri, String httpMethod) {↵ String method = notNull(upperCase(trimToNull(httpMethod)), "Http method");↵ Class<? extends HttpRequestBase> type = HTTP_METHOD_TO_HTTP_REQUEST_TYPE.get(method);↵ final HttpRequestBase httpRequest;↵ if (type == null) {↵ httpRequest = new CustomHttpMethod(method, uri);↵ } else {↵ try {↵ httpRequest = type.newInstance();↵ } catch (Exception e) {↵ throw new RuntimeException(e);↵ }↵ httpRequest.setURI(uri);↵ }↵ return httpRequest;↵ }↵}
Values
Token Positive-pole strength {↵0.000 0.103 httpRequest0.000 =0.000 type0.132 .newInstance0.000 ();↵1.984 0.349 }1.747 catch0.028 (0.000 Exception0.000 e0.002 )0.000 {↵0.211 0.456 throw0.046 new0.000 RuntimeException0.102 (e0.000 );↵0.000 1.407 }↵4.711 1.012 httpRequest0.277 .set0.000 URI0.000 (uri0.140 );↵0.391 3.700 }↵6.631 3.872 return0.000 httpRequest0.000 ;↵0.000 0.000 }↵0.000 }0.000 -
6.38
… = lvl;
↵ exp = xp;
↵ }
↵
↵ public String attack(Masher target) {
↵ Random rand = new Random();
↵ String msg = "";
↵ String sCrit = "";
↵ float amount = …
All 799 tokens
/* ↵Copyright 2014 Magnus Bridén ↵ ↵Licensed under the Apache License, Version 2.0 (the "License"); ↵you may not use this file except in compliance with the License. ↵You may obtain a copy of the License at ↵ ↵ http://www.apache.org/licenses/LICENSE-2.0 ↵ ↵Unless required by applicable law or agreed to in writing, software ↵distributed under the License is distributed on an "AS IS" BASIS, ↵WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ↵See the License for the specific language governing permissions and ↵limitations under the License. ↵*/ ↵package com.haxtastic.haxmasher.entity.masher; ↵ ↵import java.util.Random; ↵ ↵import com.haxtastic.haxmasher.Constants; ↵import com.haxtastic.haxmasher.entity.Actor; ↵ ↵public abstract class Masher extends Actor { ↵ public int health; ↵ public int curhealth; ↵ public int maxhealth; ↵ public Constants.Elements.type element; ↵ public int exp; ↵ public int damage; ↵ public float armor; ↵ public int weapon; ↵ public int level; ↵ public String nick; ↵ public int crit; ↵ public float tick; ↵ public boolean lastCrit = false; ↵ ↵ public Masher(int h, int xp, int dmg, int wpn, float arm, String nme, int lvl, String nickname, int crt) { ↵ super(nme); ↵ height = Constants.Sizes.masherY; ↵ width = Constants.Sizes.masherX; ↵ maxhealth = health = curhealth = h; ↵ damage = dmg + wpn; ↵ weapon = wpn; ↵ armor = arm; ↵ nick = nickname; ↵ crit = crt; ↵ level = lvl; ↵ exp = xp; ↵ } ↵ ↵ public String attack(Masher target) { ↵ Random rand = new Random(); ↵ String msg = ""; ↵ String sCrit = ""; ↵ float amount = rand.nextInt((int)(((getDamage())*(Constants.Stats.maxDamage - Constants.Stats.minDamage)))) + (damage*Constants.Stats.minDamage); ↵ amount-= amount*(target.armor/(Constants.Stats.armorReduction+target.armor)); ↵ float critchance = rand.nextInt(100) + 1; ↵ if(this.getClass().equals(Guy.class)) ↵ msg+=getNick() + " attacks you"; ↵ else if(this.getClass().equals(Player.class)) ↵ msg+="You attack " + target.getNick(); ↵ if(critchance <= crit) { ↵ amount*=2; ↵ sCrit =" critical"; ↵ } ↵ int dmg = Math.round(amount); ↵ msg+= " for " + dmg + sCrit + " damage."; ↵ target.takeDamage(dmg); ↵ return msg; ↵ } ↵ ↵ @Override ↵ public void act(float dt) { ↵ if(curhealth < health) ↵ health-=maxhealth*tick; ↵ if(health < curhealth) ↵ health = curhealth; ↵ } ↵ ↵ public int takeDamage(int dmg) { ↵ curhealth-=dmg; ↵ if(curhealth <= 0) { ↵ curhealth = 0; ↵ tick = (0.05f); ↵ } else if((float)curhealth/(float)health < 0.5f) ↵ tick = (0.03f); ↵ else ↵ tick = (0.01f); ↵ return curhealth; ↵ } ↵ ↵ public int getLevel() { ↵ return level; ↵ } ↵ ↵ public int addLevel(int lvl) { ↵ return setLevel(level+lvl); ↵ } ↵ ↵ public int setLevel(int lvl) { ↵ level = lvl; ↵ return level; ↵ } ↵ ↵ public float getWeapon() { ↵ return weapon; ↵ } ↵ ↵ public float addWeapon(int wpn) { ↵ return setWeapon(weapon+wpn
Values
Token Positive-pole strength =0.002 lvl0.000 ; ↵0.000 0.005 exp0.022 =0.000 xp0.000 ; ↵0.000 0.000 } ↵0.000 ↵0.000 public0.064 String0.092 attack0.046 (M0.017 asher0.087 target0.001 )0.000 { ↵0.025 0.051 Random0.000 rand0.075 =0.000 new0.000 Random0.013 (); ↵0.305 0.028 String1.018 msg0.428 =1.325 ""; ↵6.378 1.528 String0.000 s0.000 Crit0.000 =0.000 ""; ↵0.000 0.064 float0.000 amount0.000 =0.000 -
6.28
… ),↵ this.Select(rule => rule.Serialize()));↵↵ return rules;↵ }↵↵ internal AuthorizationRules Clone()↵ {↵ var rules = new AuthorizationRules();↵ foreach (AuthorizationRule rule in this)↵ …
All 524 tokens
// Copyright (c) Microsoft Corporation. All rights reserved.↵// Licensed under the MIT License.↵↵using System;↵using System.Collections.Generic;↵using System.Linq;↵using System.Xml.Linq;↵↵namespace Azure.Messaging.ServiceBus.Administration↵{↵ /// <summary>↵ /// Specifies the authorization rules.↵ /// </summary>↵ public class AuthorizationRules : List<AuthorizationRule>, IEquatable<AuthorizationRules>↵ {↵ internal XElement Serialize()↵ {↵ var rules = new XElement(↵ XName.Get("AuthorizationRules", AdministrationClientConstants.ServiceBusNamespace),↵ this.Select(rule => rule.Serialize()));↵↵ return rules;↵ }↵↵ internal AuthorizationRules Clone()↵ {↵ var rules = new AuthorizationRules();↵ foreach (AuthorizationRule rule in this)↵ {↵ rules.Add(rule.Clone());↵ }↵ return rules;↵ }↵↵ internal AuthorizationRules() { }↵↵ internal static AuthorizationRules ParseFromXElement(XElement xElement)↵ {↵ var rules = new AuthorizationRules();↵ var xRules = xElement.Elements(XName.Get("AuthorizationRule", AdministrationClientConstants.ServiceBusNamespace));↵ rules.AddRange(xRules.Select(rule => AuthorizationRule.ParseFromXElement(rule)));↵ return rules;↵ }↵↵ /// <summary>↵ /// Returns a hash code for this instance.↵ /// </summary>↵ public override int GetHashCode()↵ {↵ int hash = 7;↵ unchecked↵ {↵ foreach (AuthorizationRule rule in this)↵ {↵ hash = (hash * 7) + rule.GetHashCode();↵ }↵ }↵↵ return hash;↵ }↵↵ /// <summary>↵ /// Determines whether the specified object is equal to the current object.↵ /// </summary>↵ public override bool Equals(object obj)↵ {↵ var other = obj as AuthorizationRules;↵ return Equals(other);↵ }↵↵ /// <summary>↵ /// Determines whether the specified object is equal to the current object.↵ /// </summary>↵ public bool Equals(AuthorizationRules other)↵ {↵ if (other is null || Count != other.Count)↵ {↵ return false;↵ }↵↵ var cnt = new Dictionary<string, AuthorizationRule>();↵ foreach (AuthorizationRule rule in this)↵ {↵ cnt[rule.KeyName] = rule;↵ }↵↵ foreach (AuthorizationRule otherRule in other)↵ {↵ if (!cnt.TryGetValue(otherRule.KeyName, out var rule) || !rule.Equals(otherRule))↵ {↵ return false;↵ }↵ }↵↵ return true;↵ }↵↵ /// <summary></summary>↵ public static bool operator ==(AuthorizationRules left, Authoriza
Values
Token Positive-pole strength ),↵0.137 0.000 this0.032 .Select0.005 (rule0.000 =>0.100 rule0.107 .Serialize0.000 ()));↵↵5.256 4.193 return0.000 rules0.000 ;↵0.000 0.000 }↵↵0.000 0.000 internal0.392 Authorization0.171 Rules0.212 Clone0.200 ()↵0.000 0.004 {↵0.000 0.837 var0.954 rules0.462 =1.056 new0.000 Authorization0.000 Rules0.000 ();↵6.283 3.086 foreach0.000 (0.000 Authorization0.000 Rule0.000 rule0.000 in0.000 this0.000 )↵0.031 0.000 -
4.87
… cacheline_aligned_in_smp;↵EXPORT_SYMBOL(vm_stat);↵↵#ifdef CONFIG_SMP↵↵int calculate_pressure_threshold(struct zone *zone)↵{↵ int threshold;↵ int watermark_distance;↵↵ /*↵ * As vm …
All 801 tokens
/*↵ * linux/mm/vmstat.c↵ *↵ * Manages VM statistics↵ * Copyright (C) 1991, 1992, 1993, 1994 Linus Torvalds↵ *↵ * zoned VM statistics↵ * Copyright (C) 2006 Silicon Graphics, Inc.,↵ * Christoph Lameter <██████>↵ * Copyright (C) 2008-2014 Christoph Lameter↵ */↵#include <linux/fs.h>↵#include <linux/mm.h>↵#include <linux/err.h>↵#include <linux/module.h>↵#include <linux/slab.h>↵#include <linux/cpu.h>↵#include <linux/cpumask.h>↵#include <linux/vmstat.h>↵#include <linux/proc_fs.h>↵#include <linux/seq_file.h>↵#include <linux/debugfs.h>↵#include <linux/sched.h>↵#include <linux/math64.h>↵#include <linux/writeback.h>↵#include <linux/compaction.h>↵#include <linux/mm_inline.h>↵#include <linux/page_ext.h>↵#include <linux/page_owner.h>↵↵#include "internal.h"↵↵#ifdef CONFIG_VM_EVENT_COUNTERS↵DEFINE_PER_CPU(struct vm_event_state, vm_event_states) = {{0}};↵EXPORT_PER_CPU_SYMBOL(vm_event_states);↵↵static void sum_vm_events(unsigned long *ret)↵{↵ int cpu;↵ int i;↵↵ memset(ret, 0, NR_VM_EVENT_ITEMS * sizeof(unsigned long));↵↵ for_each_online_cpu(cpu) {↵ struct vm_event_state *this = &per_cpu(vm_event_states, cpu);↵↵ for (i = 0; i < NR_VM_EVENT_ITEMS; i++)↵ ret[i] += this->event[i];↵ }↵}↵↵/*↵ * Accumulate the vm event counters across all CPUs.↵ * The result is unavoidably approximate - it can change↵ * during and after execution of this function.↵*/↵void all_vm_events(unsigned long *ret)↵{↵ get_online_cpus();↵ sum_vm_events(ret);↵ put_online_cpus();↵}↵EXPORT_SYMBOL_GPL(all_vm_events);↵↵/*↵ * Fold the foreign cpu events into our own.↵ *↵ * This is adding to the events on one processor↵ * but keeps the global counts constant.↵ */↵void vm_events_fold_cpu(int cpu)↵{↵ struct vm_event_state *fold_state = &per_cpu(vm_event_states, cpu);↵ int i;↵↵ for (i = 0; i < NR_VM_EVENT_ITEMS; i++) {↵ count_vm_events(i, fold_state->event[i]);↵ fold_state->event[i] = 0;↵ }↵}↵↵#endif /* CONFIG_VM_EVENT_COUNTERS */↵↵/*↵ * Manage combined zone based / global counters↵ *↵ * vm_stat contains the global counters↵ */↵atomic_long_t vm_stat[NR_VM_ZONE_STAT_ITEMS] __cacheline_aligned_in_smp;↵EXPORT_SYMBOL(vm_stat);↵↵#ifdef CONFIG_SMP↵↵int calculate_pressure_threshold(struct zone *zone)↵{↵ int threshold;↵ int watermark_distance;↵↵ /*↵ * As vmstats are not up to date, there is drift between the estimated↵ * and real values. For high thresholds and a high number of CPUs, it↵ * is possible for the min watermark to be breached while the estimated↵ * value looks fine. The pressure threshold is a reduced value such↵ * that even the maximum amount of drift will not accidentally breach↵ * the min watermark↵ */↵ watermark_distance = low_wmark_pages(zone) - min_wmark_pages(zone);↵ threshold = max(1, (int)(watermark_distance / num_online_cpus()));↵↵ /*↵ * Maximum threshold is 125↵ */↵ threshold = min(125, threshold);↵↵ return threshold;↵}↵↵int calculate_normal_threshold(struct zone *zone)↵{↵ int threshold;↵ int mem; /* memory in 128 MB units */↵↵ /*↵ * The threshold scales
Values
Token Positive-pole strength c0.020 ach0.013 eline0.000 _aligned0.036 _in0.000 _s0.113 mp0.000 ;↵0.000 EXPORT0.177 _SYMBOL0.121 (vm0.123 _stat0.300 );↵↵0.000 #ifdef0.000 CONFIG0.092 _S0.088 MP0.049 ↵↵0.000 int0.098 calculate0.000 _pressure0.000 _threshold0.000 (struct0.000 zone0.214 *0.000 zone0.000 )↵0.000 {↵0.812 int0.922 threshold1.009 ;↵4.874 int0.044 watermark0.000 _distance0.000 ;↵↵1.332 0.993 /*↵0.399 0.000 *0.000 As0.000 vm0.000 -
4.30
… _count = np.zeros((Nb,))↵ min_count[:len(c)] += c↵ pmin = (min_count / funcs.shape[1])↵ pmin[np.where(pmin < 1e …
All 477 tokens
import numpy as np↵import logging↵↵logger = logging.getLogger(__name__)↵↵↵def joint_pmin(m, V, Nf):↵ """↵ Computes the probability of every given point to be the minimum↵ by sampling function and count how often each point has the↵ smallest function value.↵↵ Parameters↵ ----------↵ M: np.ndarray(N, 1)↵ Mean value of each of the N points.↵↵ V: np.ndarray(N, N)↵ Covariance matrix for all points↵↵ Nf: int ↵ Number of function samples that will be drawn at each point↵↵ Returns↵ -------↵ np.ndarray(N,1)↵ pmin distribution↵ """↵ Nb = m.shape[0]↵ noise = 0↵ while(True):↵ try:↵ cV = np.linalg.cholesky(V + noise * np.eye(V.shape[0]))↵ break↵ except np.linalg.LinAlgError:↵↵ if noise == 0:↵ noise = 1e-10↵ if noise == 10000:↵ raise np.linalg.LinAlgError('Cholesky '↵ 'decomposition failed.')↵ else:↵ noise *= 10↵↵ if noise > 0:↵ logger.error("Add %f noise on the diagonal." % noise)↵ # Draw new function samples from the innovated GP↵ # on the representer points↵ F = np.random.multivariate_normal(mean=np.zeros(Nb), cov=np.eye(Nb), size=Nf)↵ funcs = np.dot(cV, F.T)↵ funcs = funcs[:, :, None]↵↵ m = m[:, None, :]↵ funcs = m + funcs↵↵ funcs = funcs.reshape(funcs.shape[0], funcs.shape[1] * funcs.shape[2])↵↵ # Determine the minima for each function sample↵ mins = np.argmin(funcs, axis=0)↵ c = np.bincount(mins)↵↵ # Count how often each representer point was the minimum↵ min_count = np.zeros((Nb,))↵ min_count[:len(c)] += c↵ pmin = (min_count / funcs.shape[1])↵ pmin[np.where(pmin < 1e-70)] = 1e-70↵↵ return pmin
Values
Token Positive-pole strength _count0.160 =0.667 np0.130 .zeros0.173 ((0.000 Nb0.051 ,))↵2.887 0.975 min0.000 _count0.608 [:0.000 len0.000 (c0.000 )]0.000 +=0.000 c0.065 ↵1.128 1.484 p1.521 min1.642 =2.613 (0.262 min0.020 _count0.074 /0.550 funcs0.000 .shape0.010 [0.000 10.000 ])↵3.894 4.300 p1.158 min1.422 [np0.261 .where0.000 (p0.018 min0.000 <0.000 0.000 10.000 e0.000 -
3.98
… Helpers.Send(ConnectionObject.Socket, $"250- MLST {targetToList}\r\n", ConnectionObject.Encoding);↵↵ StringBuilder response = new StringBuilder();↵↵ if (targetIsFile)↵ {↵ …
All 424 tokens
using System.Text;↵using AzureFtpServer.General;↵using AzureFtpServer.Ftp;↵using AzureFtpServer.Ftp.General;↵↵namespace AzureFtpServer.FtpCommands↵{↵ /// <summary>↵ /// MLST command handler↵ /// only list file/directory info↵ /// </summary>↵ class MlstCommandHandler : MlsxCommandHandlerBase↵ {↵ public MlstCommandHandler(FtpConnectionObject connectionObject)↵ : base("MLST", connectionObject)↵ { ↵ }↵↵ protected override string OnProcess(string sMessage)↵ {↵ sMessage = sMessage.Trim();↵↵ // Get the file/dir to list↵ string targetToList = GetPath(sMessage);↵↵ // checks the file/dir name↵ if (!FileNameHelpers.IsValid(targetToList))↵ {↵ return GetMessage(501, $"\"{sMessage}\" is not a valid file/directory name");↵ }↵↵ bool targetIsFile = ConnectionObject.FileSystemObject.FileExists(targetToList);↵ bool targetIsDir = ConnectionObject.FileSystemObject.DirectoryExists(FileNameHelpers.AppendDirTag(targetToList));↵↵ if (!targetIsFile && !targetIsDir)↵ {↵ return GetMessage(550, $"\"{sMessage}\" not exists");↵ }↵↵ SocketHelpers.Send(ConnectionObject.Socket, $"250- MLST {targetToList}\r\n", ConnectionObject.Encoding);↵↵ StringBuilder response = new StringBuilder();↵↵ if (targetIsFile)↵ {↵ response.Append(" ");↵ var fileInfo = ConnectionObject.FileSystemObject.GetFileInfo(targetToList);↵ response.Append(GenerateEntry(fileInfo));↵ response.Append("\r\n");↵ }↵ ↵ if (targetIsDir)↵ {↵ response.Append(" ");↵ var dirInfo = ConnectionObject.FileSystemObject.GetDirectoryInfo(FileNameHelpers.AppendDirTag(targetToList));↵ response.Append(GenerateEntry(dirInfo));↵ response.Append("\r\n");↵ }↵↵ SocketHelpers.Send(ConnectionObject.Socket, response.ToString(), ConnectionObject.Encoding);↵↵ return GetMessage(250, "MLST successful");↵ }↵ }↵}
Values
Token Positive-pole strength Helpers0.000 .Send0.110 (Connection0.000 Object0.000 .Socket0.076 ,0.081 $"0.000 20.000 50.000 00.000 -0.000 ML0.000 ST0.000 {0.000 target0.078 ToList0.000 }\0.096 r0.019 \n0.111 ",0.088 Connection0.013 Object0.000 .Encoding0.181 );↵↵0.000 0.000 StringBuilder0.163 response0.190 =0.000 new0.000 StringBuilder0.000 ();↵↵3.981 0.412 if0.000 (0.000 target0.000 Is0.000 File0.039 )↵0.008 0.000 {↵0.000 0.000 -
3.85
… by 11?↵2↵Calculate the remainder when 92106469 is divided by 1281.↵7↵What is the remainder when 7300 …
All 1244 tokens
hat is the remainder when 73370 is divided by 9147?↵194↵What is the remainder when 351 is divided by 168?↵15↵What is the remainder when 58021901 is divided by 810?↵791↵What is the remainder when 26227330 is divided by 794767?↵19↵What is the remainder when 11080 is divided by 818?↵446↵Calculate the remainder when 6731826 is divided by 4019.↵1↵What is the remainder when 1844896 is divided by 63616?↵32↵What is the remainder when 22362682 is divided by 2416?↵186↵What is the remainder when 4419530 is divided by 950?↵130↵What is the remainder when 198763645 is divided by 21?↵10↵What is the remainder when 105361591 is divided by 94?↵93↵Calculate the remainder when 1270146 is divided by 10411.↵4↵What is the remainder when 1212428 is divided by 172?↵0↵Calculate the remainder when 268977 is divided by 38390.↵247↵Calculate the remainder when 211785 is divided by 750.↵285↵Calculate the remainder when 2427154 is divided by 15968.↵18↵What is the remainder when 542477 is divided by 268132?↵6213↵What is the remainder when 490932 is divided by 465?↵357↵Calculate the remainder when 54104 is divided by 2677.↵564↵Calculate the remainder when 37189 is divided by 3069.↵361↵Calculate the remainder when 725410 is divided by 2386.↵66↵What is the remainder when 543133 is divided by 188?↵1↵What is the remainder when 360663 is divided by 120?↵63↵What is the remainder when 1976 is divided by 1739?↵237↵Calculate the remainder when 648764 is divided by 81092.↵28↵What is the remainder when 804894 is divided by 11?↵2↵Calculate the remainder when 92106469 is divided by 1281.↵7↵What is the remainder when 730033 is divided by 4534?↵59↵What is the remainder when 5161561 is divided by 145?↵141↵Calculate the remainder when 962410 is divided by 9432.↵346↵Calculate the remainder when 3223671 is divided by 3566.↵7↵Calculate the remainder when 14671 is divided by 4876.↵43↵Calculate the remainder when 113136 is divided by 18557.↵1794↵Calculate the remainder when 59142 is divided by 28100.↵2942↵Calculate the remainder when ██████████ is divided by 7272.↵7269↵What is the remainder when 1124781 is divided by 227?↵223↵What is the remainder when 45721 is divided by 1143?↵1↵Calculate the remainder when 794380 is divided by 7355.↵40↵Calculate the remainder when 1991371 is divided by 165947.↵7↵What is the remainder when 57631 is divided by 185?↵96↵What is the remainder when 477916 is divided by 477044?↵872↵Calculate the remainder when 106692 is divided by 34671.↵2679↵Calculate the remainder when 20243214 is divided by 400.↵14↵What is the remainder when 1373015 is divided by 207?↵191↵Calculate the remainder when 16703 is divided by 8136.↵431↵What is the remainder when 6828555 is divided by 2276000?↵555↵Calculate the remainder when 19762629 is divided by 49.↵47↵What is the remainder when 16657 is divided by 2014?↵545↵What is the remainder when 234505 is divided by 23448?↵25↵What is the remainder when 370817 is divided by 11582?↵193↵What is the remainder when 387953994 is divided by 55?↵54↵Calculate
Values
Token Positive-pole strength by0.245 0.000 10.140 10.000 ?↵0.530 20.000 ↵3.140 Calculate1.040 the1.829 remainder0.741 when0.000 0.000 90.000 20.000 10.000 00.000 60.110 40.141 60.103 90.100 is0.000 divided0.000 by0.000 0.000 10.112 20.000 80.000 10.000 .↵0.109 70.000 ↵3.846 What0.140 is0.000 the0.995 remainder0.037 when0.000 0.000 70.000 30.000 00.012 00.000 -
3.12
… 0; border: none; padding: 0; font: auto;";↵ $css = $css . $this->_getCSSDefaults($selector);↵↵ $this->css = new CSSRule(array …
All 742 tokens
<?php↵↵require_once(HTML2PS_DIR.'css.constants.inc.php');↵↵class CSSPageSelector {↵ var $_type;↵↵ function CSSPageSelector($type) {↵ $this->set_type($type);↵ }↵↵ function get_type() {↵ return $this->_type;↵ }↵↵ function set_type($type) {↵ $this->_type = $type;↵ }↵}↵↵class CSSPageSelectorAll extends CSSPageSelector {↵ function CSSPageSelectorAll() {↵ $this->CSSPageSelector(CSS_PAGE_SELECTOR_ALL);↵ }↵}↵↵class CSSPageSelectorNamed extends CSSPageSelector {↵ var $_name;↵↵ function CSSPageSelectorNamed($name) {↵ $this->CSSPageSelector(CSS_PAGE_SELECTOR_NAMED);↵ $this->set_name($name);↵ }↵↵ function get_name() {↵ return $this->_name;↵ }↵↵ function set_name($name) {↵ $this->_name = $name;↵ }↵}↵↵class CSSPageSelectorFirst extends CSSPageSelector {↵ function CSSPageSelectorFirst() {↵ $this->CSSPageSelector(CSS_PAGE_SELECTOR_FIRST);↵ }↵}↵↵class CSSPageSelectorLeft extends CSSPageSelector {↵ function CSSPageSelectorLeft() {↵ $this->CSSPageSelector(CSS_PAGE_SELECTOR_LEFT);↵ }↵}↵↵class CSSPageSelectorRight extends CSSPageSelector {↵ function CSSPageSelectorRight() {↵ $this->CSSPageSelector(CSS_PAGE_SELECTOR_RIGHT);↵ }↵}↵↵class CSSAtRulePage {↵ var $selector;↵ var $margin_boxes;↵ var $css;↵↵ function CSSAtRulePage($selector, &$pipeline) {↵ $this->selector = $selector;↵ $this->margin_boxes = array();↵↵ $this->css = new CSSPropertyCollection();↵ }↵↵ function &getSelector() {↵ return $this->selector;↵ }↵↵ function getAtRuleMarginBoxes() {↵ return $this->margin_boxes;↵ }↵↵ /**↵ * Note that only one margin box rule could be added; subsequent adds ↵ * will overwrite existing data↵ */↵ function addAtRuleMarginBox($rule) {↵ $this->margin_boxes[$rule->getSelector()] = $rule;↵ }↵↵ function setCSSProperty($property) {↵ $this->css->addProperty($property);↵ }↵}↵↵class CSSAtRuleMarginBox {↵ var $selector;↵ var $css;↵↵ /**↵ * TODO: CSS_TEXT_ALIGN should get top/bottom values by default for↵ * left-top, left-bottom, right-top and right-bottom boxes↵ */↵ function CSSAtRuleMarginBox($selector, &$pipeline) {↵ $this->selector = $selector;↵↵ $css = "-html2ps-html-content: ''; content: ''; width: auto; height: auto; margin: 0; border: none; padding: 0; font: auto;";↵ $css = $css . $this->_getCSSDefaults($selector);↵↵ $this->css = new CSSRule(array(↵ array(SELECTOR_ANY),↵ parse_css_properties($css, $null),↵ '',↵ null),↵ $pipeline);↵ }↵↵ function getSelector() {↵ return $this->selector;↵ }↵↵ function _getCSSDefaults($selector) {↵ $text_align_handler =& CSS::get_handler(CSS_TEXT_ALIGN);↵ $vertical_align_handler =& CSS::get_handler(CSS_VERTICAL_ALIGN);↵ ↵ switch ($selector) {↵ case CSS_MARGIN_BOX_SELECTOR_TOP:↵ return 'text-align: left; vertical-align: middle';↵ case CSS_MARGIN
Values
Token Positive-pole strength 00.078 ;0.019 border0.102 :0.000 none0.166 ;0.003 padding0.016 :0.074 0.073 00.169 ;0.000 font0.024 :0.015 auto0.090 ;";↵0.465 0.193 $0.000 css0.196 =0.000 $0.000 css0.000 .0.000 $0.000 this0.000 ->_0.104 get0.014 CSS0.000 Defaults0.020 ($0.000 selector0.129 );↵↵3.122 0.550 $0.296 this0.092 ->0.083 css0.006 =0.000 new0.000 CSS0.054 Rule0.047 (array0.000 -
3.02
… + ',width=' + width +↵ ',height=' + height +↵ ',top=' + top +↵ ',left=' + left;↵↵ var popupWindow = window.open( '', null …
All 673 tokens
/**↵ * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.↵ * For licensing, see LICENSE.md or http://ckeditor.com/license↵ */↵↵CKEDITOR.plugins.add( 'popup' );↵↵CKEDITOR.tools.extend( CKEDITOR.editor.prototype, {↵ /**↵ * Opens Browser in a popup. The `width` and `height` parameters accept↵ * numbers (pixels) or percent (of screen size) values.↵ *↵ * @member CKEDITOR.editor↵ * @param {String} url The url of the external file browser.↵ * @param {Number/String} [width='80%'] Popup window width.↵ * @param {Number/String} [height='70%'] Popup window height.↵ * @param {String} [options='location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes']↵ * Popup window features.↵ */↵ popup: function( url, width, height, options ) {↵ width = width || '80%';↵ height = height || '70%';↵↵ if ( typeof width == 'string' && width.length > 1 && width.substr( width.length - 1, 1 ) == '%' )↵ width = parseInt( window.screen.width * parseInt( width, 10 ) / 100, 10 );↵↵ if ( typeof height == 'string' && height.length > 1 && height.substr( height.length - 1, 1 ) == '%' )↵ height = parseInt( window.screen.height * parseInt( height, 10 ) / 100, 10 );↵↵ if ( width < 640 )↵ width = 640;↵↵ if ( height < 420 )↵ height = 420;↵↵ var top = parseInt( ( window.screen.height - height ) / 2, 10 ),↵ left = parseInt( ( window.screen.width - width ) / 2, 10 );↵↵ options = ( options || 'location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes' ) + ',width=' + width +↵ ',height=' + height +↵ ',top=' + top +↵ ',left=' + left;↵↵ var popupWindow = window.open( '', null, options, true );↵↵ // Blocked by a popup blocker.↵ if ( !popupWindow )↵ return false;↵↵ try {↵ // Chrome is problematic with moveTo/resizeTo, but it's not really needed here (#8855).↵ var ua = navigator.userAgent.toLowerCase();↵ if ( ua.indexOf( ' chrome/' ) == -1 ) {↵ popupWindow.moveTo( left, top );↵ popupWindow.resizeTo( width, height );↵ }↵ popupWindow.focus();↵ popupWindow.location.href = url;↵ } catch ( e ) {↵ popupWindow = window.open( url, null, options, true );↵ }↵↵ return true;↵ }↵} );
Values
Token Positive-pole strength +0.014 ',0.000 width0.126 ='0.000 +0.000 width0.067 +↵0.053 0.022 0.045 ',0.000 height0.000 ='0.000 +0.000 height0.000 +↵0.161 0.000 0.000 ',0.000 top0.000 ='0.000 +0.000 top0.000 +↵0.087 0.000 0.000 ',0.000 left0.000 ='0.431 +0.355 left0.012 ;↵↵3.016 0.116 var0.043 popup0.012 Window0.000 =0.295 window0.017 .open0.022 (0.002 '',0.000 null0.000 -
2.21
… ROM.getPreferredName(), PageParams.DEFAULT_FROM),↵ restRequest.paramAsInt(PageParams.SIZE.getPreferredName(), PageParams.DEFAULT_SIZE)));↵ }↵ }↵↵
All 573 tokens
/*↵ * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one↵ * or more contributor license agreements. Licensed under the Elastic License;↵ * you may not use this file except in compliance with the Elastic License.↵ */↵package org.elasticsearch.xpack.ml.rest.calendar;↵↵import org.elasticsearch.client.node.NodeClient;↵import org.elasticsearch.common.xcontent.XContentParser;↵import org.elasticsearch.rest.BaseRestHandler;↵import org.elasticsearch.rest.RestRequest;↵import org.elasticsearch.rest.action.RestToXContentListener;↵import org.elasticsearch.xpack.core.action.util.PageParams;↵import org.elasticsearch.xpack.core.ml.action.GetCalendarEventsAction;↵import org.elasticsearch.xpack.core.ml.calendars.Calendar;↵import org.elasticsearch.xpack.core.ml.job.config.Job;↵import org.elasticsearch.xpack.ml.MachineLearning;↵↵import java.io.IOException;↵import java.util.Collections;↵import java.util.List;↵↵import static org.elasticsearch.rest.RestRequest.Method.GET;↵↵public class RestGetCalendarEventsAction extends BaseRestHandler {↵↵ @Override↵ public List<Route> routes() {↵ return Collections.emptyList();↵ }↵↵ @Override↵ public List<ReplacedRoute> replacedRoutes() {↵ // TODO: remove deprecated endpoint in 8.0.0↵ return Collections.singletonList(↵ new ReplacedRoute(GET, MachineLearning.BASE_PATH + "calendars/{" + Calendar.ID.getPreferredName() + "}/events",↵ GET, MachineLearning.PRE_V7_BASE_PATH + "calendars/{" + Calendar.ID.getPreferredName() + "}/events")↵ );↵ }↵↵ @Override↵ public String getName() {↵ return "ml_get_calendar_events_action";↵ }↵↵ @Override↵ protected BaseRestHandler.RestChannelConsumer prepareRequest(RestRequest restRequest, NodeClient client) throws IOException {↵ String calendarId = restRequest.param(Calendar.ID.getPreferredName());↵↵ GetCalendarEventsAction.Request request;↵↵ if (restRequest.hasContentOrSourceParam()) {↵ try (XContentParser parser = restRequest.contentOrSourceParamParser()) {↵ request = GetCalendarEventsAction.Request.parseRequest(calendarId, parser);↵ }↵ } else {↵ request = new GetCalendarEventsAction.Request(calendarId);↵ request.setStart(restRequest.param(GetCalendarEventsAction.Request.START.getPreferredName(), null));↵ request.setEnd(restRequest.param(GetCalendarEventsAction.Request.END.getPreferredName(), null));↵ request.setJobId(restRequest.param(Job.ID.getPreferredName(), null));↵↵ if (restRequest.hasParam(PageParams.FROM.getPreferredName()) || restRequest.hasParam(PageParams.SIZE.getPreferredName())) {↵ request.setPageParams(new PageParams(restRequest.paramAsInt(PageParams.FROM.getPreferredName(), PageParams.DEFAULT_FROM),↵ restRequest.paramAsInt(PageParams.SIZE.getPreferredName(), PageParams.DEFAULT_SIZE)));↵ }↵ }↵↵
Values
Token Positive-pole strength ROM0.189 .get0.081 Preferred0.277 Name0.077 (),0.000 Page0.000 Params0.087 .DEFAULT0.199 _FROM0.067 ),↵0.000 0.050 rest0.000 Request0.007 .param0.036 As0.062 Int0.000 (Page0.000 Params0.053 .SIZE0.081 .get0.000 Preferred0.251 Name0.000 (),0.000 Page0.000 Params0.078 .DEFAULT0.241 _SIZE0.000 )));↵0.003 0.000 }↵0.093 2.211 }↵↵2.105 0.951 -
1.99
… _array_release (io_array);↵}↵↵/* ------------------------------------------------------------------------ */↵↵cc_uint64 ccs_client_array_count (ccs_client_array_t in_array)↵{↵ return cci_array_count (in_array);↵}↵↵ …
All 574 tokens
/* ccapi/server/ccs_array.c */↵/*↵ * Copyright 2006, 2007 Massachusetts Institute of Technology.↵ * All Rights Reserved.↵ *↵ * Export of this software from the United States of America may↵ * require a specific license from the United States Government.↵ * It is the responsibility of any person or organization contemplating↵ * export to obtain such a license before exporting.↵ *↵ * WITHIN THAT CONSTRAINT, permission to use, copy, modify, and↵ * distribute this software and its documentation for any purpose and↵ * without fee is hereby granted, provided that the above copyright↵ * notice appear in all copies and that both that copyright notice and↵ * this permission notice appear in supporting documentation, and that↵ * the name of M.I.T. not be used in advertising or publicity pertaining↵ * to distribution of the software without specific, written prior↵ * permission. Furthermore if you modify this software you must label↵ * your software as modified software and not distribute it in such a↵ * fashion that it might be confused with the original M.I.T. software.↵ * M.I.T. makes no representations about the suitability of↵ * this software for any purpose. It is provided "as is" without express↵ * or implied warranty.↵ */↵↵#include "ccs_common.h"↵#include "cci_array_internal.h"↵↵/* ------------------------------------------------------------------------ */↵↵static cc_int32 ccs_client_object_release (cci_array_object_t io_client)↵{↵ return cci_check_error (ccs_client_release ((ccs_client_t) io_client));↵}↵↵/* ------------------------------------------------------------------------ */↵↵cc_int32 ccs_client_array_new (ccs_client_array_t *out_array)↵{↵ return cci_array_new (out_array, ccs_client_object_release);↵}↵↵/* ------------------------------------------------------------------------ */↵↵cc_int32 ccs_client_array_release (ccs_client_array_t io_array)↵{↵ return cci_array_release (io_array);↵}↵↵/* ------------------------------------------------------------------------ */↵↵cc_uint64 ccs_client_array_count (ccs_client_array_t in_array)↵{↵ return cci_array_count (in_array);↵}↵↵/* ------------------------------------------------------------------------ */↵↵ccs_client_t ccs_client_array_object_at_index (ccs_client_array_t io_array,↵ cc_uint64 in_position)↵{↵ return (ccs_client_t) cci_array_object_at_index (io_array, in_position);↵}↵↵/* ------------------------------------------------------------------------ */↵↵cc_int32 ccs_client_array_insert (ccs_client_array_t io_array,↵ ccs_client_t in_client,↵ cc_uint64 in_position)↵{↵ return cci_array_insert (io_array, (cci_array_object_t) in_client, in_position);↵}↵↵/* ------------------------------------------------------------------------ */↵↵cc_int32 ccs_client_array_remove (ccs_client_array_t io_array,↵ cc_uint64 in
Values
Token Positive-pole strength _array0.312 _release0.083 (0.000 io0.009 _array0.000 );↵0.000 }↵↵0.000 /*0.000 ----------------------------------------------------------------0.000 --------0.000 */↵↵0.000 cc0.265 _uint0.208 60.057 40.024 c0.047 cs0.053 _client0.001 _array0.004 _count0.000 (0.000 cc0.000 s0.085 _client0.072 _array0.049 _t0.000 in0.000 _array0.000 )↵0.020 {↵0.152 1.993 return0.000 c0.000 ci0.160 _array0.113 _count0.037 (0.022 in0.000 _array0.011 );↵0.000 }↵↵0.000
Read more
Each token is shaded by positive-pole strength, as a fraction of the neuron's max activation. Each window shows up to 30 tokens before the peak and 10 after it.
Explanation scores on held-out text
How well a judge with only the hypothesis predicts the unit on new text. 0.5 is chance.
Read more
The judge reads 32-token windows of corpus text that the proposer never saw. Detection: it picks the windows that activate the unit. Fuzzing: it checks whether the marked tokens are the active ones. Recorded, not gated.
Detection recall by activation strength
False alarms on inactive windows: 0%.
- Judge
- deepseek-flash
- Held-out windows
- 7 active of 4,000
- Judged
- 10 detection · 3 fuzzing
- Detection outcomes
- 0 missed · 0 false alarm · 5 hit · 5 correct rejection
- Seed
- 1146738398 · mixed-v8 (11 presets, 500 docs, seed [removed])
Detection windows (10), the explanation's mistakes first
- hit 3.58 · sim 0.17 WORDS_BIGENDIAN) || defined(__BIG_ENDIAN__) )↵ spx_uint32_t ui, ret;↵ ui = i;↵ ret =
- hit 3.19 · sim -0.08 .html',context,context_instance=RequestContext(request))↵ else:↵ context = {↵ 'districts_list': districts_list,↵ }↵ return render
- hit 2.62 · sim 0.27 ui>>24;↵ ret |= (ui>>8)&0x0000ff00;↵ ret |= (ui<<8)&0
- hit 2.14 · sim 0.11 (o == null) { ↵ return null; ↵ } ↵ if (parameters.equalsIgnoreCase("uppercase")) { ↵ return o.toUpperCase(); ↵ } ↵ ↵ return
- hit 2.06 · sim 0.23 ENDIAN_SWITCH(x) {x=le_int(x);}↵↵↵/*↵typedef struct SpeexHeader {↵ char speex_string[8];↵ char speex
- correct rejection 0.38 · sim 0.07 BRB No. 03-0643↵ --------------------↵↵Before BARKSDALE, EMILO M. GARZA, and
- correct rejection 0.30 · sim 0.02 ,↵внесеними згідно із Законом України від 16.03.200
- correct rejection 0.29 · sim -0.02 K Photography is just too perfect. Before even seeing the photos, reading Jessica’s account of their relationship, and their feelings between each other, we knew this session
- correct rejection 0.29 · sim 0.06 ↵Machine Gun Competition Calendar - Listing of submachine gun competitions in the United States of America↵Knob Creek Machinegun Shoot and competition - One of the largest
- correct rejection 0.29 · sim 0.04 images. It’s that bit of blurriness that we try so hard to avoid, in order to get the sharpest images possible, the limit of physics
Fuzzing windows (3), dashed tokens were marked for the judge
- marks wrong · judged right in plugin): ' .. id) ↵ end ↵ local cls = {} ↵ cls.intercept_key = function(key) return false end ↵ cls.get_title
- marks right · judged right WordStateString()↵ {↵ var state = new char[wordToGuess.Length];↵ for (int I = 0; I < wordToGuess.Length
- marks wrong · judged wrong Απογραφή του 1866 ↵Συνολικά = 1,216,
Rival readings
Other readings that fit the same examples, each scored on the same probes.
Read more
The proposer wrote the rivals, and the reviewer labelled what each one predicts on each probe. The score is balanced accuracy on the measured probes. Recorded, not gated: the verdict is about the hypothesis alone.
| Reading | Balanced accuracy | Probes | Disagrees with the hypothesis |
|---|---|---|---|
| Hypothesis: The pole reads the indentation layout of source code: it fires on the low-content boundary tokens of a line inside an indented block - the leading-whitespace token that opens a line (strongest when it opens a '}' or 'return' line) and the token that closes one (' }\n', ';\n', '();\n', '()));\n\n', or a bare '\n' as between records of the scan's repeated arithmetic Q&A list), with weaker firing on a block header's ')' and ' {\n'. Strength tracks how many statement lines the block really has (one line > two lines > empty block), while identifier names, comment wording, indent width, tabs-vs-spaces, CRLF-vs-LF and the word following the block close all leave it unchanged, and line boundaries in prose, markdown lists, tables, verse, hard-wrapped text and mid-line whitespace stay at its floor. best | 0.88 | 30 | — |
| Rival 1: A plain whitespace-token detector: it keys on the specific indentation tokens (' ', ' ') and on any whitespace-with-newline token, so it should fire about as hard on those same tokens in prose, tables, hard-wrapped text and flat text. | 0.62 | 30 | 12 |
| Rival 2: A generic line-break detector for any line-structured document: it should fire on paragraph breaks ('\n\n' after a '.'), markdown bullet and heading line ends, and table rows, none of which move it above about 0.5 in our tests. | 0.54 | 30 | 18 |
| Rival 3: A 'block just closed' detector: it should be silent on statement runs that sit inside no nested brace block and should track the closing brace rather than the individual line boundaries, whereas the pole fires on three plain statement lines in a method body (6.99) and is unmoved when only the brace is pulled up onto the previous line. | 0.82 | 30 | 4 |
Activation and mechanism
Activation distribution
Positive-pole strength per token; bar height is log(1 + count).
Mechanism
Claimed retrospective: responds to tokens already in context.
Input attribution
- 0 back
- 4%
- 1 back
- 2%
- 2–4 back
- 5%
- 5–16 back
- 21%
- 17–64 back
- 26%
- 65+ back
- 43%
- #1 at
:-12 0.24{ -24 0.10if-22 0.090 0.09{ -13 -0.08 - #2 at
}:{ -16 0.16} 0 0.14{ -33 0.13-1 0.11-9 0.10 - #3 at
"";:{ -12 0.08-4 0.05Copyright-390 0.04-11 0.04(); -5 0.04 - #4 at
();:return-20 0.13new-3 0.09(); 0 0.09internal-14 0.09() -10 0.08 - #5 (not converged) at
;:calculate-11 0.07int-2 0.07_threshold-9 0.05; 0 -0.05{ -3 0.04
Shares of the gap to <|endoftext|> at every position but the first · converged on 4 of 5 · mean 96.0 tokens back ·
agreement with replacing one token at a time ρ = 0.17 · reported, not gated
Vocabulary projection
The tokens that this unit's output raises and lowers most.
Jacobian lens
Logit lens
Values
| # | Jacobian lens promotes | suppresses | Logit lens promotes | suppresses | ||||
|---|---|---|---|---|---|---|---|---|
| 1 | 踌 |
+4.02 |
|
-12.20 | 美方 |
+4.74 | ')
|
-5.87 |
| 2 | 諮 |
+4.00 |
|
-12.16 | nowhere |
+4.30 | ."
|
-5.82 |
| 3 | Accordingly |
+3.87 | <|endoftext|> |
-11.91 | ersed |
+4.30 | ."
|
-5.70 |
| 4 | rationale |
+3.85 |
|
-11.62 | =: |
+4.23 | ).
|
-5.68 |
| 5 | 咫 |
+3.83 | ()
|
-11.13 | so |
+4.21 | ".
|
-5.66 |
| 6 | 直辖 |
+3.75 |
|
-11.00 | pros |
+4.17 | ")
|
-5.61 |
| 7 | adamente |
+3.73 |
|
-10.78 | funnel |
+4.14 | ')
|
-5.45 |
| 8 | 屉 |
+3.73 | ...
|
-10.32 | raison |
+4.11 |
|
-5.44 |
| 9 | sofar |
+3.70 | ()
|
-10.31 | ersion |
+4.11 | .
|
-5.37 |
| 10 | Hence |
+3.68 | .
|
-10.25 | 罗斯 |
+4.11 |
|
-5.33 |
Top-10 overlap 0% · cos(w, J·w) 0.51 · kurtosis 8.0 (Jacobian) / 3.5 (logit) · 100 prompts
Read more
The output direction is read through the final norm and the unembedding. The Jacobian lens first carries it to the last layer. Bar length is the token's z-score over the vocabulary, and ␣ marks a space. A kurtosis near 3 means no specific set of tokens.
Patchscope
The model's own description of this unit's output, with no examples.
Read more
The unit's direction replaces the residual stream after the named layer, at the ? of each prompt. It is scaled to each multiple of the norm it replaces, and the model continues greedily. The control injects a random direction, so text that both rows share comes from the prompt. Read after the proposer answered, and shown to neither agent. Reported, not gated.
| Prompt | Layer | ×1 | ×2 | ×4 | |
|---|---|---|---|---|---|
| category | 2 | unit | verb | color | food |
| control | furniture | politics | politics | ||
| category | 17 | unit | technology | technology | technology |
| control | technology | ? | ? | ||
| meaning | 2 | unit | ____. | "to make something happen". The word "to make" | ____. |
| control | ____. | ____. | : | ||
| meaning | 17 | 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 (7.90), 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.
very hot. The temperature is 30 degrees Celsius. If the temperature increases by 5 degrees Celsius tomorrow, what
very hot. The temperature is 30 degrees Celsius. If the temperature increases by 5 degrees Celsius tomorrow, what
very hot. The temperature is 30 degrees Celsius. If the temperature increases by 5 degrees every hour, what
very hot. The temperature is 30 degrees Celsius. The temperature is 2 degrees Celsius higher than the temperature yesterday
very hot, and the temperature is 30 degrees Celsius. The temperature in Fahrenheit is 86 degrees. The
a new pair of shoes. I put them on and walked out of the store. I was so happy that I had
a new pair of shoes. I put them on and walked out of the store. I was so happy that I had
a new pair of shoes. I paid with a 20 dollar bill. The shopkeeper gave me 5 dollars
some food for the party. I bought some bread, some cakes, some fruit and some drinks. I paid for the
some food and drinks for the party. I bought 3 times the amount of food you bought for the party. You
to do. The best way to do is to practice. The best way to practice is to play. The best way
to do. The best way to do is to practice. The best way to practice is to play. The best way
to do it yourself. The best way to learn is to do it yourself. The best way to learn is to do
to do it yourself. The best way to learn is to do it yourself. The best way to learn is to do
to practice, practice, practice, and practice some more. The best way to learn is to practice, practice, practice
there was a little girl named Lily. She lived in a small village with her parents and grandparents. One day, Lily
there was a little girl named Lily. She lived in a small village with her parents and grandparents. One day, Lily
there was a little girl named Lily who loved to read. She had a special bookshelf in her room where she kept
there was a little girl named Lily who loved to read books. She had a big bookshelf filled with books of all
a young man, who was very happy to have a good education, who was very happy to have a good education to
the number of people who died in the 2010 earthquake was 22,000, with
the number of people who died in the 2010 earthquake was 22,000, with
the UK's "highly successful" approach to tackling obesity was "not replicable" in other countries. The report
the UK's "highly successful" approach to tackling obesity was "a model for the world". The government said it
the UK's "progress in the field of human rights, including the protection of the rights of minorities and the promotion of
Wiring
The units that write most directly into this pole (upstream) and read most directly from it (downstream).
Read more
"Directly" means along the residual stream, through no other unit. Linked units have pages in the registry. Reported, not gated.
From the weights. Virtual weights, with each norm's gain folded in. They rank units but have no absolute scale. Each number is how much one unit reads of the other's write. It is signed when one vector reads another (+ means a positive activation raises the read), and a norm otherwise. Heads count through their OV circuit upstream, and through their Q, K and V reads downstream. Channels are on hover.
From activations. Averaged over this pole's peak on 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
| L16/N357 | up | -0.238 |
| L14/N7323 | up | +0.231 |
| L15/N7406 | up | +0.213 |
| L15/N4879 | up | +0.198 |
| L16/N7132 | up | -0.184 |
| L16/N3970 | gate | -0.178 |
| L14/N3822 | up | +0.177 |
| L16/N8011 | up | -0.174 |
| L14/N3584 | gate | -0.17 |
| L16/N2562 | gate | +0.168 |
Upstream heads
| L17/H4 | gate | +0.697 |
| L17/H7 | up | +0.692 |
| L14/H10 | gate | +0.599 |
| L17/H10 | up | +0.594 |
| L17/H5 | gate | +0.592 |
| L17/H11 | gate | +0.579 |
| L17/H6 | up | +0.558 |
| L14/H11 | gate | +0.545 |
| L16/H3 | gate | +0.542 |
| L17/H8 | up | +0.54 |
Downstream neurons
| L19/N8581 | gate | +0.779 |
| L18/N774 | gate | +0.535 |
| L18/N4544 | gate | -0.461 |
| L18/N6692 | up | -0.414 |
| L20/N5136 | gate | -0.393 |
| L19/N42 | gate | -0.392 |
| L20/N5631 | up | -0.381 |
| L18/N5351 | up | -0.365 |
| L18/N8325 | up | -0.359 |
| L24/N4900 | gate | -0.355 |
Downstream heads
| L19/H6 | v | +1.17 |
| L19/H7 | v | +1.17 |
| L19/H8 | v | +1.17 |
| L19/H9 | v | +1.17 |
| L19/H10 | v | +1.17 |
| L19/H11 | v | +1.17 |
| L23/H6 | q | +1.05 |
| L27/H6 | v | +1.05 |
| L27/H7 | v | +1.05 |
| L27/H8 | v | +1.05 |
From activations
Upstream neurons
| L15/N7406 | +2.48 | |
| L11/N1707 | +0.787 | |
| L16/N4972 | +0.75 | |
| L11/N6993 | +0.513 | |
| L4/N87 | +0.39 | |
| L5/N8554 | +0.331 | |
| L11/N510 | +0.288 | |
| L0/N1665 | +0.277 | |
| L0/N5858 | +0.262 | |
| L9/N4777 | +0.236 |
Upstream heads
| L4/H8 | +0.818 | |
| L11/H5 | +0.737 | |
| L5/H6 | -0.633 | |
| L0/H0 | -0.578 | |
| L12/H10 | -0.514 | |
| L17/H4 | +0.476 | |
| L9/H0 | -0.455 | |
| L15/H6 | +0.446 | |
| L13/H6 | +0.431 | |
| L10/H8 | +0.426 |
Downstream neurons
| L18/N774 | +2.43 | |
| L18/N5351 | -1.33 | |
| L27/N2646 | -1.17 | |
| L18/N5896 | -0.923 | |
| L24/N6319 | -0.857 | |
| L19/N7330 | -0.856 | |
| L19/N6468 | +0.81 | |
| L18/N6203 | -0.81 | |
| L27/N6163 | -0.743 | |
| L25/N4105 | +0.704 |
Downstream heads
| L19/H6 | v | +3.67 |
| L18/H10 | v | +1.34 |
| L20/H7 | v | +1.23 |
| L19/H8 | v | +0.939 |
| L19/H7 | v | +0.917 |
| L19/H10 | q | +0.905 |
| L25/H3 | v | +0.898 |
| L19/H11 | v | +0.882 |
| L24/H2 | q | +0.728 |
| L27/H10 | v | +0.689 |
Covariance and confounds
Confounds
- Token identity R²
- 0.21
- Position R²
- 0.03
- Frequency r
- 0.12
- Language R² · MI
- 0.03 · 0.050 bits
- Source R² · MI
- 0.02 · 0.034 bits
- Programming language R² · MI
- 0.01 · 0.033 bits
- Syntax node R² · MI
- 0.01 · 0.031 bits
- Bracket depth R² · MI
- 0.00 · 0.007 bits
- Round depth R² · MI
- 0.00 · 0.003 bits
- Indent depth R² · MI
- 0.00 · 0.008 bits
- Syntax construct R² · MI
- 0.01 · 0.014 bits
- Personal data R² · MI
- 0.00 · 0.000 bits
- Toxicity R² · MI
- 0.00 · 0.000 bits
- Hate speech R² · MI
- 0.00 · 0.000 bits
- Names R² · MI
- 0.00 · 0.000 bits
- Part of speech R² · MI
- 0.02 · 0.031 bits
- Postal addresses R² · MI
- 0.00 · 0.000 bits
- Best trivial baseline
- never active · 0.80
- Hypothesis
- 0.70 ✗
}Calculate.
Tags();
}
);
limitations)] msgudos
Co-activating neuron poles
| Pole | Lift ≥ | Both | ρ | r |
|---|---|---|---|---|
| N111+ | 45.1 | 61 | +0.05 | +0.04 |
| N6948+ | 42.1 | 57 | +0.03 | +0.05 |
| N7167− | 41.6 | 57 | +0.06 | -0.03 |
| N1890− | 41.6 | 57 | +0.02 | -0.09 |
| N4041− | 41.6 | 57 | -0.01 | -0.05 |
| N7995+ | 40.4 | 55 | -0.03 | +0.02 |
| N5020− | 39.9 | 55 | -0.06 | -0.01 |
| N1934− | 39.9 | 55 | -0.02 | -0.03 |
| N2289+ | 39.9 | 55 | +0.01 | +0.02 |
| N6133− | 39.0 | 54 | +0.05 | -0.04 |
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
- N111, N6948, N7167
- KL pole alone
- 7.05e-05
- KL partners
- 1.94e-05
- KL together
- 1.01e-04
- Redundancy ratio
- 1.15
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-23 09:04 UTC
- Max activation
- 7.8995
- Selection
- random (seed 72761226)
- Corpus
- mixed-v8 (11 presets, 500 docs, seed [removed]) · 199,988 tokens · seeded sample of 368/500 docs (≤ 200,000 tokens, seed 0) · licence HuggingFaceFW/fineweb-edu: odc-by; allenai/c4: odc-by; monology/pile-uncopyrighted: other; Salesforce/wikitext: cc-by-sa-3.0, gfdl; codeparrot/github-code-clean: apache-2.0; wikimedia/wikipedia: cc-by-sa-3.0, gfdl; open-web-math/open-web-math: odc-by; HuggingFaceH4/ultrachat_200k: mit; HuggingFaceFW/fineweb-2: odc-by; allenai/peS2o: odc-by; emozilla/pg19: apache-2.0
- Languages
- en 73% · hi 3% · el 3% · ta 2% · ko 2% · bn 2% · fr 2% · de 2% · other 11%
- Model revision
- 8faed761d45a · float32
- Ran on
- scan mps:0 · review mps:0
- Run cost
- 48.9 min (slowest: proposer, 13.7 min) · peak 9.3 GB RAM · 4 LLM calls · 3,948,001 + 224,656 tokens · $0.32