Qwen/Qwen2.5-0.5B · L13/N1134 · 20261026T142532Z
Experiment 3 of 4 on this neuron, most conclusive first · record
The pole fires at the close of a control-flow branch in code: it peaks on the last token(s) before the `}` (or the Python dedent) that ends an `if`/`else`/loop body, and on the `else` / `end if` / `} else {` that immediately follow that boundary, most strongly when the branch is a decisive early exit (`return`/`break`/`throw`), less for loop bodies, and near baseline for branch-free code. It is retrospective and content-weighted: it integrates the branch body already read (swapping `return true;` for `y++;` in the same slot cuts it ~2.5x even though the next token is `}` either way, and the pole's ablation moves next-token log-probabilities by only KL~1e-5), and it also lifts, more weakly, on prose that spells out the same 'if X, the function returns Y' relation.
The whole hypothesis
The pole fires at the close of a control-flow branch in code: it peaks on the last token(s) before the `}` (or the Python dedent) that ends an `if`/`else`/loop body, and on the `else` / `end if` / `} else {` that immediately follow that boundary, most strongly when the branch is a decisive early exit (`return`/`break`/`throw`), less for loop bodies, and near baseline for branch-free code. It is retrospective and content-weighted: it integrates the branch body already read (swapping `return true;` for `y++;` in the same slot cuts it ~2.5x even though the next token is `}` either way, and the pole's ablation moves next-token log-probabilities by only KL~1e-5), and it also lifts, more weakly, on prose that spells out the same 'if X, the function returns Y' relation.
Hard negatives 9/11 rejected · holdouts 3/5 fired (independent observations; 16 probes) · P(useful) 0.74
Revised by 20261030T065754Z (NEEDS_REVISION)
specificity 0.82 · sensitivity 0.60 · counterfactual reproduction 1.00 · protocol v0.7
} }
elseelseend if}{
Adversarial review
hard_negative: 9/11 passed; positive_holdout: 3/5 passed; counterfactual: 8/8 passed; lookahead_consistency: 1/1 passed. Failed gates: beats_confound_baseline.
All 25 probes
| Test | Input | Expected | Observed | |
|---|---|---|---|---|
| ✓ | hard negative | {
"deployment": {
"replicas": 3,
"resources": {
"limits": {
"cpu": "500m",
"memory": "512Mi"
},
"requests": {
"cpu": "250m",
"memory": "256Mi"
}
},
"env": [
{
"name": "MODE",
"value": "production"
}
]
}
} Nested closing braces and indentation runs match the claimed trigger tokens, but the file is a pure data literal with no if/else/loop or early exit, so the hypothesis predicts near baseline. |
inactive | 0.189 |
| ✓ | hard negative | Everyone else had already left the office by the time the fire alarm rang, so nobody else noticed the smoke drifting under the door until the cleaners arrived. The word else appears in its ordinary pronoun sense with no conditional, branch body or return, which the hypothesis says should not fire. |
inactive | 0.150 |
| ✓ | hard negative | import json
def load_config(path):
handle = open(path)
text = handle.read()
handle.close()
data = json.loads(text)
settings = data.get("settings", {})
return settings.get("timeout", 30)
Same Python indentation dedents and a return as the examples, but no if/else or loop anywhere, so branch-free code should sit near baseline. |
inactive | 0.086 |
| ✓ | hard negative | .card {
padding: 12px;
border-radius: 6px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.card:hover {
background: #f5f5f5;
}
@media (max-width: 600px) {
.card {
padding: 8px;
}
.sidebar {
display: none;
}
}
Braces close style blocks in the same ' }' shape as the claimed tokens, but there is no control flow or branch body being exited, so the hypothesis predicts no peak. |
inactive | 0.409 |
| ✓ | hard negative | The word "if" appears three hundred and twelve times in the contract, mostly inside stock phrases such as "if any", "if necessary" and "if applicable"; drafters call these the ifs and buts of a clause, and they seldom change what either party must do. The peak token ' if' from example 5 recurs repeatedly, but only as a quoted word being discussed, with no condition followed by a terminating action, so the hypothesis predicts baseline. |
inactive | 0.166 |
| ✓ | hard negative | class Repository:
def __init__(self, root):
self.root = root
self.cache = {}
def path_for(self, name):
joined = os.path.join(self.root, name)
return os.path.normpath(joined)
def exists(self, name):
return os.path.isfile(self.path_for(name))
Python dedents close class and method bodies as cleanly as an if body, but no if/else/loop branch is being exited, so the hypothesis predicts near baseline. |
inactive | 0.365 |
| ✗ | hard negative | # Legacy handler, removed in 2019 but kept for historical reference:
# if user.is_admin:
# grant_access(user)
# else:
# deny_access(user)
# end if
def check(user):
return user.role == "admin"
The claimed ' else' and 'end if' tokens appear only inside comments where no branch is actually opened or closed, so the hypothesis predicts baseline. |
inactive | 0.664 |
| ✓ | hard negative | server:
host: 127.0.0.1
port: 8080
options:
timeout: 30
retries: 3
backoff:
initial: 500
maximum: 30000
multiplier: 2.0
tls:
enabled: true
cert: /etc/certs/server.pem
Deep indentation runs and dedents reproduce the whitespace peak tokens of example 2, but the file is branch-free configuration, so the hypothesis predicts near baseline. |
inactive | 0.383 |
| ✓ | hard negative | SELECT
customer_id,
CASE
WHEN lifetime_total > 1000 THEN 'gold'
WHEN lifetime_total > 100 THEN 'silver'
ELSE 'bronze'
END AS tier
FROM customers
WHERE created_at > '2020-01-01'
ORDER BY lifetime_total DESC;
ELSE and END belong to a SQL CASE value expression, not to an if/else or loop body being exited, so the hypothesis predicts baseline despite the else-like token. |
inactive | 0.565 |
| ✓ | hard negative | The reaction proceeds quickly at room temperature, whereas at four degrees it slows down considerably; the enzyme is otherwise stable for weeks, and the buffer can be reused after filtration. Prose containing contrastive whereas and otherwise but none of the if-X-returns-Y relation that is the hypothesis's only claimed prose trigger, so predicted near baseline. |
inactive | 0.090 |
| ✗ | hard negative | package com.example.billing;
import java.math.BigDecimal;
import java.time.Instant;
import java.util.List;
public final class Invoice {
private final String id;
private final String customerId;
private final List<LineItem> items;
private final Instant issuedAt;
private final BigDecimal total;
public Invoice(String id, String customerId, List<LineItem> items, Instant issuedAt) {
this.id = id;
this.customerId = customerId;
this.items = List.copyOf(items);
this.issuedAt = issuedAt;
this.total = items.stream()
.map(LineItem::amount)
.reduce(BigDecimal.ZERO, BigDecimal::add);
}
public String getId() {
return id;
}
public String getCustomerId() {
return customerId;
}
public List<LineItem> getItems() {
return items;
}
public BigDecimal getTotal() {
return total;
}
public static final class LineItem {
private final String sku;
private final int quantity;
private final BigDecimal unitPrice;
public LineItem(String sku, int quantity, BigDecimal unitPrice) {
this.sku = sku;
this.quantity = quantity;
this.unitPrice = unitPrice;
}
public BigDecimal amount() {
return unitPrice.multiply(BigDecimal.valueOf(quantity));
}
}
} Many ' }' closes and dedents follow returns, but every block is a method, constructor or class rather than an if/else/loop, so the hypothesis predicts near baseline. |
inactive | 0.655 |
| ✗ | positive holdout | func (s *Store) Get(key string) (*Item, error) {
item, err := s.gateway.Lookup(key)
if err != nil {
return nil, fmt.Errorf("lookup %q: %w", key, err)
}
return item, nil
}
A decisive early return closes an if body immediately before the fall-through return, the strongest pattern the hypothesis claims, so it predicts a peak at that close. |
active | 0.469 |
| ✓ | positive holdout | def first_negative(values):
found = None
for value in values:
if value < 0:
found = value
break
return found
A loop body is closed by a Python dedent right after a break, which the hypothesis says should fire, though less strongly than brace-closed if bodies. |
active | 1.308 |
| ✓ | positive holdout | #!/usr/bin/env bash
set -euo pipefail
backup() {
local dir="$1"
if [ ! -d "$dir" ]; then
echo "missing directory: $dir" >&2
exit 1
else
tar -czf "$dir.tar.gz" "$dir"
fi
}
An if/else in a syntax absent from the examples, with a decisive exit 1 before ' else' and the branch closed by fi, so the hypothesis predicts the else and branch-close tokens fire. |
active | 0.667 |
| ✗ | positive holdout | If the insured cancels the policy within fourteen days of purchase, the insurer returns the entire premium to the original payment method; otherwise the cancellation takes effect at the end of the current billing period. Cross-genre legal prose that spells out an if-X-then-returns-Y relation, the weak prose form the hypothesis claims should lift. |
active | 0.146 |
| ✓ | positive holdout | import { createHash } from "node:crypto";
import { readFile, writeFile } from "node:fs/promises";
import path from "node:path";
export interface ManifestEntry {
readonly name: string;
readonly checksum: string;
readonly size: number;
readonly updatedAt: string;
}
export interface Manifest {
readonly version: number;
readonly entries: readonly ManifestEntry[];
}
export class ManifestStore {
private readonly root: string;
private cache: Manifest | undefined = undefined;
constructor(root: string) {
this.root = root;
}
private fileFor(name: string): string {
return path.join(this.root, name + ".json");
}
private checksumOf(payload: string): string {
return createHash("sha256").update(payload).digest("hex");
}
async list(): Promise<string[]> {
const manifest = await this.readManifest("index");
const names = manifest.entries.map((entry) => entry.name);
return names.sort();
}
async load(name: string): Promise<ManifestEntry> {
const manifest = await this.readManifest(name);
const candidate = manifest.entries.find((entry) => entry.name === name);
if (candidate === undefined) {
throw new Error("missing entry for " + name);
}
return candidate;
}
async save(name: string, payload: string): Promise<void> {
const file = this.fileFor(name);
const previous = await this.readManifest(name);
const entry: ManifestEntry = {
name,
checksum: this.checksumOf(payload),
size: payload.length,
updatedAt: new Date().toISOString(),
};
const kept = previous.entries.filter((candidate) => candidate.name !== name);
const next: Manifest = {
version: previous.version + 1,
entries: [...kept, entry],
};
await writeFile(file, payload, "utf8");
await this.writeManifest(name, next);
this.cache = next;
}
async remove(name: string): Promise<boolean> {
const previous = await this.readManifest(name);
const kept = previous.entries.filter((entry) => entry.name !== name);
if (kept.length === previous.entries.length) {
return false;
}
const next: Manifest = { version: previous.version + 1, entries: kept };
await this.writeManifest(name, next);
return true;
}
async writeManifest(name: string, manifest: Manifest): Promise<void> {
const file = this.fileFor(name);
const text = JSON.stringify(manifest, null, 2);
await writeFile(file, text, "utf8");
}
async readManifest(name: string): Promise<Manifest> {
const file = this.fileFor(name);
const text = await readFile(file, "utf8");
const parsed = JSON.parse(text) as Manifest;
if (parsed.version < 0) {
throw new Error("invalid manifest version for " + name);
} else {
return parsed;
}
}
}
A roughly 700-token module whose nested branch closes, including a throw followed by '} else {', sit deep in a long file, which the hypothesis says should still fire. |
active | 1.870 |
| ✓ | counterfactual | public boolean hasXCRCSupport() throws IOException { String response = client.getReplyString(); Scanner scanner = new Scanner(response); while(scanner.hasNextLine()) { String line = scanner.nextLine(); if(line.contains("XCRC")) { return true; } } return false; } -> public boolean hasXCRCSupport() throws IOException { String response = client.getReplyString(); Scanner scanner = new Scanner(response); while(scanner.hasNextLine()) { String line = scanner.nextLine(); ok = line.contains("XCRC"); count = count + 1; } return false; } | Δ 0.89 | Δ 0.89 |
| ✓ | counterfactual | public boolean hasXCRCSupport() throws IOException { String response = client.getReplyString(); Scanner scanner = new Scanner(response); while(scanner.hasNextLine()) { String line = scanner.nextLine(); if(line.contains("XCRC")) { return true; } } return false; } -> public boolean hasXCRCSupport() throws IOException { String response = client.getReplyString(); Scanner scanner = new Scanner(response); while(scanner.hasNextLine()) { String line = scanner.nextLine(); if(line.contains("XCRC")) { y++; } } return false; } | Δ 0.72 | Δ 0.72 |
| ✓ | counterfactual | def has_xcrc_support(self): for line in self.read_lines(): if "XCRC" in line: return True return False -> def has_xcrc_support(self): for line in self.read_lines(): found = "XCRC" in line return found | Δ 0.72 | Δ 0.72 |
| ✓ | counterfactual | func (client VpnSitesClient) CreateOrUpdate(ctx context.Context) (result VpnSitesCreateOrUpdateFuture, err error) { req, err := client.CreateOrUpdatePreparer(ctx) if err != nil { return } result, err = client.CreateOrUpdateSender(req) if err != nil { return } return } -> func (client VpnSitesClient) CreateOrUpdate(ctx context.Context) (result VpnSitesCreateOrUpdateFuture, err error) { req, err := client.CreateOrUpdatePreparer(ctx) result, err = client.CreateOrUpdateSender(req) err = client.FinishPreparer(ctx) result, err = client.ReportSender(req) return } | Δ 0.62 | Δ 0.62 |
| ✓ | counterfactual | public boolean hasXCRCSupport() throws IOException { String response = client.getReplyString(); Scanner scanner = new Scanner(response); while(scanner.hasNextLine()) { String line = scanner.nextLine(); if(line.contains("XCRC")) { return true; } } return false; } -> public boolean hasXCRCSupport() throws IOException { String response = client.getReplyString(); Scanner scanner = new Scanner(response); while(scanner.hasNextLine()) { String line = scanner.nextLine(); while(line.contains("XCRC")) { return true; } } return false; } | Δ 0.41 | Δ 0.41 |
| ✓ | counterfactual | if (a == b) { foo(); } else { bar(); } -> if (a == b) { foo(); } bar(); qux(); | Δ 0.30 | Δ 0.30 |
| ✓ | counterfactual | The function reads each line of the server reply and checks whether it contains the word XCRC. If a line contains the token, the function returns true and stops reading. Otherwise it keeps going through the remaining lines and then returns false. -> The function reads each line of the server reply and looks for the word XCRC. A matching line makes it stop reading and report the outcome to the caller. Otherwise it keeps going through the remaining lines and then returns false. | Δ 0.22 | Δ 0.22 |
| ✓ | counterfactual | public boolean hasXCRCSupport() throws IOException { String response = client.getReplyString(); Scanner scanner = new Scanner(response); while(scanner.hasNextLine()) { String line = scanner.nextLine(); if(line.contains("XCRC")) { return true; } } return false; } -> public boolean hasXCRCSupport() throws IOException { String response = client.getReplyString(); Scanner scanner = new Scanner(response); while(scanner.hasNextLine()) { String text = scanner.nextLine(); if(text.contains("XCRC")) { return true; } } return false; } | Δ 0.01 | Δ 0.01 |
| ✓ | lookahead consistency | public boolean hasXCRCSupport() throws IOException {
String response = client.getReplyString();
Scanner scanner = new Scanner(response);
while(scanner.hasNextLine()) {
String line = scanner.nextLine();
if(line.contains("XCRC")) {
return true;
}
}
return false;
}; public boolean hasXCRCSupport() throws IOException {
String response = client.getReplyString();
Scanner scanner = new Scanner(response);
while(scanner.hasNextLine()) {
String line = scanner.nextLine();
if(line.contains("XCRC")) {
return true;
}
}
return false;
}; def has_xcrc_support(self):
for line in self.read_lines():
if "XCRC" in line:
return True
return False
; func (client VpnSitesClient) CreateOrUpdate(ctx context.Context) (result VpnSitesCreateOrUpdateFuture, err error) {
req, err := client.CreateOrUpdatePreparer(ctx)
if err != nil {
return
}
result, err = client.CreateOrUpdateSender(req)
if err != nil {
return
}
return
}
; public boolean hasXCRCSupport() throws IOException {
String response = client.getReplyString();
Scanner scanner = new Scanner(response);
while(scanner.hasNextLine()) {
String line = scanner.nextLine();
if(line.contains("XCRC")) {
return true;
}
}
return false;
}; if (a == b) {
foo();
} else {
bar();
}; The function reads each line of the server reply and checks whether it contains the word XCRC.
If a line contains the token, the function returns true and stops reading.
Otherwise it keeps going through the remaining lines and then returns false.; public boolean hasXCRCSupport() throws IOException {
String response = client.getReplyString();
Scanner scanner = new Scanner(response);
while(scanner.hasNextLine()) {
String line = scanner.nextLine();
if(line.contains("XCRC")) {
return true;
}
}
return false;
} claimed retrospective; measured retrospective (KL=1.847e-05, tokens=['\treturn', '\n', ' return', ' if', 'Cycle']) |
Minimal pairs
| # | Base → counterfactual | Expected Δ | Observed Δ | Sufficiency | Necessity |
|---|---|---|---|---|---|
| 1 | public boolean hasXCRCSupport() throws IOException {
String response = client.getReplyString();
Scanner scanner = new Scanner(response);
while(scanner.hasNextLine()) {
String line = scanner.nextLine();
if(line.contains("XCRC")) {
return true;
}
}
return false;
} → public boolean hasXCRCSupport() throws IOException {
String response = client.getReplyString();
Scanner scanner = new Scanner(response);
while(scanner.hasNextLine()) {
String line = scanner.nextLine();
ok = line.contains("XCRC");
count = count + 1;
}
return false;
} |
0.89 | 0.89 | — | — |
| 2 | public boolean hasXCRCSupport() throws IOException {
String response = client.getReplyString();
Scanner scanner = new Scanner(response);
while(scanner.hasNextLine()) {
String line = scanner.nextLine();
if(line.contains("XCRC")) {
return true;
}
}
return false;
} → public boolean hasXCRCSupport() throws IOException {
String response = client.getReplyString();
Scanner scanner = new Scanner(response);
while(scanner.hasNextLine()) {
String line = scanner.nextLine();
if(line.contains("XCRC")) {
y++;
}
}
return false;
} |
0.72 | 0.72 | — | — |
| 3 | def has_xcrc_support(self):
for line in self.read_lines():
if "XCRC" in line:
return True
return False
→ def has_xcrc_support(self):
for line in self.read_lines():
found = "XCRC" in line
return found
|
0.72 | 0.72 | — | — |
| 4 | func (client VpnSitesClient) CreateOrUpdate(ctx context.Context) (result VpnSitesCreateOrUpdateFuture, err error) {
req, err := client.CreateOrUpdatePreparer(ctx)
if err != nil {
return
}
result, err = client.CreateOrUpdateSender(req)
if err != nil {
return
}
return
}
→ func (client VpnSitesClient) CreateOrUpdate(ctx context.Context) (result VpnSitesCreateOrUpdateFuture, err error) {
req, err := client.CreateOrUpdatePreparer(ctx)
result, err = client.CreateOrUpdateSender(req)
err = client.FinishPreparer(ctx)
result, err = client.ReportSender(req)
return
}
|
0.62 | 0.62 | — | — |
| 5 | public boolean hasXCRCSupport() throws IOException {
String response = client.getReplyString();
Scanner scanner = new Scanner(response);
while(scanner.hasNextLine()) {
String line = scanner.nextLine();
if(line.contains("XCRC")) {
return true;
}
}
return false;
} → public boolean hasXCRCSupport() throws IOException {
String response = client.getReplyString();
Scanner scanner = new Scanner(response);
while(scanner.hasNextLine()) {
String line = scanner.nextLine();
while(line.contains("XCRC")) {
return true;
}
}
return false;
} |
0.41 | 0.41 | 0.81 effect 2.41e-06 matched 3.48e-07 / 0.00012 |
0.84 effect 1.44e-06 matched 6.4e-08 / 9.68e-05 |
| 6 | if (a == b) {
foo();
} else {
bar();
} → if (a == b) {
foo();
}
bar();
qux(); |
0.30 | 0.30 | — | — |
| 7 | The function reads each line of the server reply and checks whether it contains the word XCRC.
If a line contains the token, the function returns true and stops reading.
Otherwise it keeps going through the remaining lines and then returns false. → The function reads each line of the server reply and looks for the word XCRC.
A matching line makes it stop reading and report the outcome to the caller.
Otherwise it keeps going through the remaining lines and then returns false. |
0.22 | 0.22 | — | — |
| 8 | public boolean hasXCRCSupport() throws IOException {
String response = client.getReplyString();
Scanner scanner = new Scanner(response);
while(scanner.hasNextLine()) {
String line = scanner.nextLine();
if(line.contains("XCRC")) {
return true;
}
}
return false;
} → public boolean hasXCRCSupport() throws IOException {
String response = client.getReplyString();
Scanner scanner = new Scanner(response);
while(scanner.hasNextLine()) {
String text = scanner.nextLine();
if(text.contains("XCRC")) {
return true;
}
}
return false;
} |
0.01 | 0.01 | — | — |
Read more
Δ is the base prompt's peak negative-pole strength minus the counterfactual's, as a fraction of the max activation.
Each causal score ranks the pole's patch effect among the 32 same-layer neurons that change as much between each pair, so 0.5 is typical. Sufficiency patches clean into corrupted, and necessity corrupted into clean. The score is the median over 1 non-control pairs, on next-token KL. Median effect 2.41e-06 (sufficiency) and 1.44e-06 (necessity). In the table, each cell gives the percentile, the pole's signed effect, and the matched neurons' median and largest |effect|, in nats of KL. Self-repair (the hydra effect) was mitigated by freezing downstream MLP outputs.
Top-activating examples
Hover a token for its value.
-
2.40
… Scanner(response);↵ while(scanner.hasNextLine()) {↵ String line = scanner.nextLine();↵ if(line.contains("XCRC")) {↵ return true;↵ }↵ }↵ return false;↵ }↵↵ public boolean …
All 335 tokens
name1=filename[k];↵ // CHECK IF FILE EXISTS↵ if (!name.equals(name1)) {↵ new_file = new FileOutputStream("C:\\test\\RTR_ZIP\\" + name);↵ client.retrieveFile(name, new_file);↵ j++;↵ exists=true;↵ } ↵ }↵ }//else↵ }//if contains .zip↵ }//for↵↵Thanks in advance. ↵↵A:↵↵If your ftp server supports XCRC command it could be possible to compare checksum (CRC32) of local and remote file.↵You could iterate all files in the folder and compare its crc with local one.↵import java.io.File;↵import java.io.IOException;↵import java.net.SocketException;↵import java.util.Scanner;↵↵import org.apache.commons.io.FileUtils;↵import org.apache.commons.net.ftp.FTPClient;↵↵public class DownloadFile {↵↵ private FTPClient client = new FTPClient();↵↵ public void connect() throws SocketException, IOException {↵ client.connect("127.0.0.1");↵ client.login("user", "password");↵ }↵↵ public boolean hasXCRCSupport() throws IOException {↵ client.sendCommand("feat");↵ String response = client.getReplyString();↵ Scanner scanner = new Scanner(response);↵ while(scanner.hasNextLine()) {↵ String line = scanner.nextLine();↵ if(line.contains("XCRC")) {↵ return true;↵ }↵ }↵ return false;↵ }↵↵ public boolean isSameFile() throws IOException {↵ if(hasXCRCSupport()) {↵ File file = new File("D:/test.txt");↵ String localCRC = Integer.toHexString((int) FileUtils.checksumCRC32(file))
Values
Token Negative-pole strength Scanner0.000 (response0.000 );↵0.043 0.000 while0.128 (scanner0.046 .hasNext0.000 Line0.000 ())0.000 {↵0.091 0.000 String0.000 line0.000 =0.000 scanner0.001 .nextLine0.000 ();↵0.000 0.000 if0.231 (line0.022 .contains0.000 ("0.000 XC0.000 RC0.000 "))0.000 {↵0.098 0.000 return0.039 true0.717 ;↵1.504 2.397 }↵2.230 0.206 }↵0.253 0.000 return0.252 false0.488 ;↵0.000 }↵↵0.000 public0.013 boolean0.034 -
1.66
… i.test(href)) {↵ $('.wrapper').fadeOut(function () {↵ window.location = href;↵ }).delay(2000).fadeIn();↵ } else {↵ window.location = href;↵ …
All 312 tokens
Q:↵↵Page transitions, depending on URL↵↵This code fades each page out, before going to the URL's destination. However, there are some instances where the user doesn't go to a new page, but goes to a PDF in the browser, or it opens the default mail application. On Safari it seems, if you go to an external site (www.twitter.com) and press the back button, the .wrapper is still faded out. (Perhaps a cache thing?)↵function fadeAndGo(x) {↵↵ $(x).click(function (e) {↵ e.preventDefault();↵ var href = this.href;↵ $('.wrapper').fadeOut(function(){↵ window.location = href;↵↵ });↵ // $('.wrapper').delay()fadeIn();↵ });↵}↵↵fadeAndGo('a');↵↵Is it possible to either:↵↵Fade out, only if the URL does not contain 'PDF, mailto', or is an external link?↵Fade in after a certain amount of time (it faded out, but faded back in after a couple of seconds, in case it was a PDF/mailto).↵↵A:↵↵Try this:↵function fadeAndGo(x) {↵ $(x).click(function (e) {↵ e.preventDefault();↵ var href = $(this).attr("href");↵ if (!/PDF|mailto/gi.test(href)) {↵ $('.wrapper').fadeOut(function () {↵ window.location = href;↵ }).delay(2000).fadeIn();↵ } else {↵ window.location = href;↵ }↵ });↵}↵↵fadeAndGo('a');↵↵
Values
Token Negative-pole strength i0.000 .test0.020 (href0.000 ))0.000 {↵0.000 0.009 $('.0.025 wrapper0.000 ').0.098 fadeOut0.000 (function0.034 ()0.080 {↵0.152 0.083 window0.001 .location0.000 =0.000 href0.000 ;↵0.409 0.212 }).0.209 delay0.000 (0.000 20.000 00.050 00.000 00.006 ).0.048 fadeIn0.000 ();↵0.389 1.664 }1.262 else1.288 {↵0.557 0.225 window0.010 .location0.018 =0.159 href0.094 ;↵0.642 0.767 -
1.66
… ->fetch(PDO::FETCH_NUM);↵↵ if($rows > 0) {↵ header ("Location: " . URL . "home");↵ } else {↵ exit ('Email or password incorrect');↵ …
All 512 tokens
Q:↵↵Como passar objetos entre controllers no MVC utilizando POO↵↵Basicamente, eu preciso que ser o login for bem sucedido salvar o nome de usuário em uma variável e utilizar-lá em outro controller.↵Model.php:↵ public function login($email, $password) {↵ session_start();↵↵ $sql = "SELECT * FROM users WHERE email = :email AND password= :password;";↵ $query = $this->db->prepare($sql);↵↵ $parameters = array(':email' => $email, ':password' => $password);↵ $query->execute($parameters);↵ $rows = $query->fetch(PDO::FETCH_NUM);↵↵ if($rows > 0) {↵ header ("Location: " . URL . "home");↵ } else {↵ exit ('Email or password incorrect');↵ }↵}↵↵Controller.php ↵ public function login() {↵ if (isset($_POST['login_submit']) AND isset($_POST['email']) AND isset($_POST['password'])) {↵ $this->model->login($_POST['email'], $_POST['password']);↵ }↵}↵↵A:↵↵Não foi explicito mas parece que você quer que seja mandado por session. Sendo assim você pode simplesmente setar na sessão e pegar de volta no outro controle.↵<?php↵// declaração da classe Pessoa↵class Pessoa {↵ public $nome;↵}↵↵// No Controller que envia os parametros↵session_start();↵$joao = new Pessoa();↵$joao->nome = "João";↵$_SESSION['pessoa'] = $joao;↵↵// No Controller que recebe os dados↵session_start();↵$joao = $_SESSION['pessoa'];↵print_r($joao);↵↵Ou se quiser padronizar isso e jogar no paradigma de orientação a objetos↵<?php↵↵// controller que envia ↵$joao = new Pessoa();↵$joao->nome = "João";↵SessionUtils::setPropriedade('pessoa', $joao);↵↵// controller que recebe ↵$joao = SessionUtils::getPropriedadeLimpar('pessoa');↵print_r($joao);↵↵// declaração da classe Pessoa↵class Pessoa {↵ public $nome;↵}↵↵// classe util para a sessão↵class SessionUtils {↵↵ private static $BASE_PROPRIEDADES = "props";↵↵ /**↵ * Pega uma propriedade da sessão ↵ * @return a propriedade ou null se
Values
Token Negative-pole strength ->0.011 fetch0.000 (PDO0.000 ::0.000 FETCH0.000 _NUM0.017 );↵↵0.110 0.140 if0.333 ($0.167 rows0.015 >0.462 0.448 00.400 )0.065 {↵0.134 0.000 header0.000 ("0.000 Location0.000 :0.000 "0.000 .0.000 URL0.070 .0.041 "0.102 home0.000 ");↵0.103 1.046 }1.284 else1.663 {↵0.371 0.000 exit0.000 ('0.000 Email0.132 or0.000 password0.000 incorrect0.117 ');↵0.185 0.233 -
1.65
… OrObject) {↵ super.visitClassOrObject(classOrObject)↵ if (classesMap[classOrObject.name] != true) {↵ return↵ }↵↵ name = classOrObject.name?. …
All 389 tokens
file.accept(visitor)↵↵ if (visitor.containsMultiRule) {↵ items.add(visitor.getMultiRule())↵ }↵ }↵}↵↵class MultiRuleVisitor : DetektVisitor() {↵ val containsMultiRule↵ get() = classesMap.any { it.value }↵ private var classesMap = mutableMapOf<String, Boolean>()↵ private var name = ""↵ private val rulesVisitor = RuleListVisitor()↵ private val properties: MutableMap<String, String> = mutableMapOf()↵↵ fun getMultiRule(): MultiRule {↵ val rules = mutableListOf<String>()↵↵ val ruleProperties = rulesVisitor.ruleProperties↵ .mapNotNull { properties[it] }↵ rules.addAll(ruleProperties)↵ rules.addAll(rulesVisitor.ruleNames)↵↵ if (name.isEmpty()) {↵ throw InvalidDocumentationException("MultiRule without name found.")↵ }↵ if (rules.isEmpty()) {↵ throw InvalidDocumentationException("MultiRule $name contains no rules.")↵ }↵ return MultiRule(name, rules)↵ }↵↵ override fun visitSuperTypeList(list: KtSuperTypeList) {↵ val isMultiRule = list.entries↵ ?.mapNotNull { it.typeAsUserType?.referencedName }↵ ?.any { it == multiRule } ?: false↵↵ val containingClass = list.containingClass()↵ val className = containingClass?.name↵ if (containingClass != null && className != null && !classesMap.containsKey(className)) {↵ classesMap[className] = isMultiRule↵ }↵ super.visitSuperTypeList(list)↵ }↵↵ override fun visitClassOrObject(classOrObject: KtClassOrObject) {↵ super.visitClassOrObject(classOrObject)↵ if (classesMap[classOrObject.name] != true) {↵ return↵ }↵↵ name = classOrObject.name?.trim() ?: ""↵ }↵↵ override fun visitProperty(property: KtProperty) {↵
Values
Token Negative-pole strength Or0.057 Object0.000 )0.062 {↵0.207 0.404 super0.136 .visit0.000 Class0.037 Or0.135 Object0.000 (class0.000 Or0.000 Object0.000 )↵0.436 0.187 if0.055 (0.238 classes0.016 Map0.000 [class0.000 Or0.000 Object0.000 .name0.000 ]0.000 !=0.341 true0.184 )0.000 {↵0.075 0.082 return0.300 ↵1.652 0.692 }↵↵0.072 0.028 name0.000 =0.000 class0.003 Or0.000 Object0.000 .name0.055 ?.0.000 -
1.57
… 'd be better to check here if the user input is correct!↵ range("$A$1").value = "Enter DOB here"↵ end if↵ end if↵End Sub↵↵Edit to …
All 367 tokens
Q:↵↵Cell should contain example input value for user to see↵↵I want to create automated cells in Excel which will show the type of data to be entered in that cells. I want to create cells which will show "Enter Username here", " Enter DOB here" same as that which shows in fb and Gmail login page. I don't want to save any credentials. ↵I had created multiple dropdown lists and people are not understanding that there is a dropdown until they click on that cell. So I want to create automated cells which will show the type of data to be entered into it. It should disappear when I click on that cell and should appear if I erase the contents from that cell which I anyone had entered.↵↵A:↵↵Look into the change selection event:↵Private Sub Worksheet_SelectionChange(ByVal Target As Range)↵ if target.address = "$A$1" then↵ target.value = ""↵ else↵ Dim value as string↵ value = range("$A$1").value↵ if value="" then 'Note: It'd be better to check here if the user input is correct!↵ range("$A$1").value = "Enter DOB here"↵ end if↵ end if↵End Sub↵↵Edit to user's comments:↵Private Sub Worksheet_SelectionChange(ByVal Target As Range)↵ if target.address = "$A$1" then↵ if target.value = "Enter DOB here"↵ target.value = ""↵ end if↵ else↵ Dim value as string↵ value = range("$A$1").value↵ if value="" then 'Note: It'd be better to check here if the user input is correct!↵ range("$A$1").value = "Enter DOB here"↵ end if↵ end if↵End Sub↵↵
Values
Token Negative-pole strength 'd0.000 be0.000 better0.000 to0.000 check0.106 here0.082 if0.108 the0.087 user0.000 input0.000 is0.078 correct0.105 !↵0.293 0.000 range0.000 ("$0.000 A0.091 $0.000 10.010 ").0.000 value0.000 =0.000 "0.000 Enter0.000 DO0.000 B0.000 here0.023 "↵0.047 0.552 end0.358 if1.572 ↵0.475 0.232 end0.366 if1.258 ↵0.136 End0.000 Sub0.000 ↵↵0.000 Edit0.000 to0.000 -
1.56
… Uv = (Pv + (1-P)v) - (UPv + U(1-P)v)$↵$= (1-P)v - U(1-P)v = (1-P)v …
All 372 tokens
Q:↵↵Is the sum of separating vectors always separating?↵↵If $\mathcal{R}$ is a von Neumann algebra acting on Hilbert space $H$ and $v, w \in H$ are separating vectors for $\mathcal{R}$, must $v+w$ be (either zero or) separating for $\mathcal{R}$?↵[I have edited to remove the restriction to type III factors and am moving my proposed partial solution to an answer below.]↵↵A:↵↵No, there must be a counterexample, under the mild assumption that there exists a nontrivial unitary $U \in \mathcal{R}$ whose restriction to the range of some nonzero projection $P \in \mathcal{R}$ is trivial (i.e. the identity).↵Fix such a $U$ and $P$. Let $v$ be any separating vector for $\mathcal{R}$ and let $w = -Uv$. This $w$ is separating for $\mathcal{R}$ since any nonzero $T \in \mathcal{R}$ that annihilated $w$ would make $-TU$ a nonzero operator in $\mathcal{R}$ than annihilates $v$.↵But we can show, using the fact that $UP = P$ and $U(1-P) = (1-P)U$, that $v + w$ is not separating for $\mathcal{R}$:↵$v + w = v - Uv = (Pv + (1-P)v) - (UPv + U(1-P)v)$↵$= (1-P)v - U(1-P)v = (1-P)v - (1-P)Uv = (1-P)(1-U)v$;↵and $(1-P)(1-U)v$ is annihilated by $P$.↵↵
Values
Token Negative-pole strength U0.000 v0.161 =0.326 (0.198 P0.000 v0.000 +1.184 (0.935 10.122 -P0.114 )v0.254 )0.032 -1.273 (1.147 UP0.000 v0.044 +0.785 U0.266 (0.249 10.120 -P0.112 )v0.509 )$0.226 ↵0.125 $0.158 =0.495 (0.648 10.117 -P0.085 )v0.245 -1.562 U0.498 (0.573 10.153 -P0.081 )v0.686 =0.660 (0.588 10.000 -P0.114 )v0.498 -
1.38
… Question(categorieCourante,questionCourante,bonneReponseCourante,mauvaisesReponses);↵ quizz.add(question);↵ } ↵ if (parser.getLocalName().equals(" …
All 495 tokens
question>↵ <reponse>reponse correcte 2</reponse>↵ <mauvaiseReponse>reponse fausse 2.1</mauvaiseReponse>↵ <mauvaiseReponse>reponse fausse 2.2</mauvaiseReponse>↵ <mauvaiseReponse>reponse fausse 2.3</mauvaiseReponse>↵</questionReponse>↵<questionReponse>↵ <categorie>CultureG</categorie>↵ <question>Question 3</question>↵ <reponse>reponse correcte 3</reponse>↵ <mauvaiseReponse>reponse fausse 3.1</mauvaiseReponse>↵ <mauvaiseReponse>reponse fausse 3.2</mauvaiseReponse>↵ <mauvaiseReponse>reponse fausse 3.3</mauvaiseReponse>↵</questionReponse>↵↵here is my parser:↵try {↵ // instanciation du parser↵ InputStream in = new FileInputStream(nomFichier);↵ XMLInputFactory factory = XMLInputFactory.newInstance();↵ XMLStreamReader parser = factory.createXMLStreamReader(in);↵↵ // lecture des evenements↵ for (int event = parser.next(); event != XMLStreamConstants.END_DOCUMENT; event = parser.next()) {↵ // traitement selon l'evenement↵ switch (event) {↵ case XMLStreamConstants.START_ELEMENT:↵ break;↵ case XMLStreamConstants.END_ELEMENT:↵ if (parser.getLocalName().equals("questionReponse")) {↵ question = new Question(categorieCourante,questionCourante,bonneReponseCourante,mauvaisesReponses);↵ quizz.add(question);↵ } ↵ if (parser.getLocalName().equals("categorie")) {↵ categorieCourante = donneesCourantes;↵ }↵ if (parser.getLocalName().equals("question")) {↵ questionCourante = donneesCourantes;↵ }↵ if (parser.getLocalName().equals("reponse")) {↵ bonneReponseCourante = donneesCourantes;↵ }↵ if (parser.getLocalName().equals("mauvaiseReponse")) {↵ mauvaisesReponses.add(donneesCourantes);↵ }↵ break;↵ case XMLStreamConstants.CHARACTERS:↵ donneesCour
Values
Token Negative-pole strength Question0.004 (c0.043 ategorie0.225 Cour0.003 ante0.102 ,0.030 question0.000 Cour0.000 ante0.000 ,0.003 bon0.024 ne0.036 Re0.000 ponse0.000 Cour0.000 ante0.033 ,0.000 ma0.000 uv0.000 aises0.000 Re0.000 ponses0.000 );↵0.005 0.069 qu0.006 izz0.000 .add0.000 (question0.017 );↵0.002 0.886 }1.377 ↵0.431 0.953 if0.337 (0.256 parser0.000 .getLocal0.000 Name0.000 ().0.173 equals0.000 ("0.000 -
1.32
… ombination is avoided by using like charges. The relaxation rate agrees with theory in the weak coupling limit (g identical with potential/kinetic energy << 1), whereas it saturates at g > …
All 123 tokens
Molecular-dynamics simulations of electron-ion temperature relaxation in a classical Coulomb plasma.↵Molecular-dynamics simulations are used to investigate temperature relaxation between electrons and ions in a fully ionized, classical Coulomb plasma with minimal assumptions. Recombination is avoided by using like charges. The relaxation rate agrees with theory in the weak coupling limit (g identical with potential/kinetic energy << 1), whereas it saturates at g > 1 due to correlation effects. The "Coulomb log" is found to be independent of the ion charge (at constant g) and mass ratio > 25.
Values
Token Negative-pole strength omb0.000 ination0.000 is0.000 avoided0.000 by0.000 using0.000 like0.009 charges0.032 .0.000 The0.000 relaxation0.037 rate0.009 agrees0.015 with0.000 theory0.000 in0.000 the0.000 weak0.101 coupling0.065 limit0.000 (0.000 g0.026 identical0.000 with0.045 potential0.074 /0.282 kin0.005 etic0.015 energy0.060 <<0.934 1.323 10.682 ),0.000 whereas0.000 it0.185 satur0.000 ates0.000 at0.000 g0.061 >0.253 0.436 -
1.30
… The JSSamplingProfiler is disabled. See this "↵ "https://fburl.com/u4lw7xeq for some help");↵ return;↵ }↵↵ JSValueRef jsResult = J …
All 414 tokens
// Copyright 2004-present Facebook. All Rights Reserved.↵↵#include "SamplingProfilerJniMethod.h"↵↵#include <JavaScriptCore/JSProfilerPrivate.h>↵↵#include <jschelpers/JSCHelpers.h>↵#include <jni.h>↵#include <string>↵↵using namespace facebook::jni;↵↵namespace facebook {↵namespace react {↵↵/* static */ jni::local_ref<SamplingProfilerJniMethod::jhybriddata>↵SamplingProfilerJniMethod::initHybrid(jni::alias_ref<jclass>,↵ jlong javaScriptContext) {↵ return makeCxxInstance(javaScriptContext);↵}↵↵/* static */ void SamplingProfilerJniMethod::registerNatives() {↵ registerHybrid(↵ {makeNativeMethod("initHybrid", SamplingProfilerJniMethod::initHybrid),↵ makeNativeMethod("poke", SamplingProfilerJniMethod::poke)});↵}↵↵SamplingProfilerJniMethod::SamplingProfilerJniMethod(jlong javaScriptContext) {↵ context_ = reinterpret_cast<JSGlobalContextRef>(javaScriptContext);↵}↵↵void SamplingProfilerJniMethod::poke(↵ jni::alias_ref<JSPackagerClientResponder::javaobject> responder) {↵ if (!JSC_JSSamplingProfilerEnabled(context_)) {↵ responder->error("The JSSamplingProfiler is disabled. See this "↵ "https://fburl.com/u4lw7xeq for some help");↵ return;↵ }↵↵ JSValueRef jsResult = JSC_JSPokeSamplingProfiler(context_);↵ if (JSC_JSValueGetType(context_, jsResult) == kJSTypeNull) {↵ responder->respond("started");↵ } else {↵ JSStringRef resultStrRef = JSValueToStringCopy(context_, jsResult, nullptr);↵ size_t length = JSStringGetLength(resultStrRef);↵ char buffer[length + 1];↵ JSStringGetUTF8CString(resultStrRef, buffer, length + 1);↵ JSStringRelease(resultStrRef);↵ responder->respond(buffer);↵ }↵}↵}↵}↵
Values
Token Negative-pole strength The0.000 J0.007 SS0.000 ampling0.006 Profiler0.000 is0.000 disabled0.000 .0.000 See0.046 this0.020 "↵0.000 0.000 "0.038 https0.000 ://0.000 fb0.012 url0.079 .com0.000 /u0.006 40.047 lw0.061 70.065 xe0.000 q0.000 for0.000 some0.000 help0.000 ");↵0.110 0.000 return0.571 ;↵1.303 0.000 }↵↵0.000 0.000 JS0.076 Value0.035 Ref0.000 js0.000 Result0.203 =0.000 J0.028 -
1.20
… err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "CreateOrUpdate", nil, "Failure preparing request")↵ return↵ }↵↵ result, err = client.CreateOrUpdateSender …
All 447 tokens
Client(subscriptionID string) VpnSitesClient {↵ return NewVpnSitesClientWithBaseURI(DefaultBaseURI, subscriptionID)↵}↵↵// NewVpnSitesClientWithBaseURI creates an instance of the VpnSitesClient client.↵func NewVpnSitesClientWithBaseURI(baseURI string, subscriptionID string) VpnSitesClient {↵ return VpnSitesClient{NewWithBaseURI(baseURI, subscriptionID)}↵}↵↵// CreateOrUpdate creates a VpnSite resource if it doesn't exist else updates the existing VpnSite.↵// Parameters:↵// resourceGroupName - the resource group name of the VpnSite.↵// vpnSiteName - the name of the VpnSite being created or updated.↵// vpnSiteParameters - parameters supplied to create or update VpnSite.↵func (client VpnSitesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters VpnSite) (result VpnSitesCreateOrUpdateFuture, err error) {↵ if tracing.IsEnabled() {↵ ctx = tracing.StartSpan(ctx, fqdn+"/VpnSitesClient.CreateOrUpdate")↵ defer func() {↵ sc := -1↵ if result.Response() != nil {↵ sc = result.Response().StatusCode↵ }↵ tracing.EndSpan(ctx, sc, err)↵ }()↵ }↵ req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, vpnSiteName, vpnSiteParameters)↵ if err != nil {↵ err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "CreateOrUpdate", nil, "Failure preparing request")↵ return↵ }↵↵ result, err = client.CreateOrUpdateSender(req)↵ if err != nil {↵ err = autorest.NewErrorWithError(err, "network.VpnSitesClient", "CreateOrUpdate", result.Response(), "Failure sending request")↵ return↵ }↵↵ return↵}↵↵// CreateOrUpdatePreparer prepares the CreateOrUpdate request.↵func (client VpnSitesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, vpnSiteName string, vpnSiteParameters VpnSite) (*http.Request, error) {↵ pathParameters := map[string]interface{}{↵ "resourceGroupName": autore
Values
Token Negative-pole strength 0.000 err0.456 =0.000 aut0.015 orest0.000 .New0.000 Error0.000 WithError0.000 (err0.188 ,0.017 "0.185 network0.103 .V0.000 pn0.131 Sites0.083 Client0.095 ",0.000 "0.141 Create0.000 OrUpdate0.073 ",0.000 nil0.110 ,0.019 "0.018 Failure0.155 preparing0.000 request0.074 ")↵0.475 0.451 return0.000 ↵1.198 0.693 }↵↵0.030 result0.000 ,0.266 err0.431 =0.157 client0.097 .Create0.000 OrUpdate0.069 Sender0.008 -
1.15
… jQuery.↵I tried:↵Event.observers.each(function(item) {↵ if(item[0] == element) {↵ console.log(item[2])↵ }↵});↵↵I also looked at List all javascript events …
All 206 tokens
Q:↵↵Is there a way to get a list of the currently addedtostage events in JavaScript without jQuery?↵↵I am wondering if there is a way to get a list of the currently addedtostage events in JavaScript without jQuery?↵I want to know this because I want to remove these events later.↵I looked around on stackoverflow but I couldn't find an answer without jQuery.↵I tried:↵Event.observers.each(function(item) {↵ if(item[0] == element) {↵ console.log(item[2])↵ }↵});↵↵I also looked at List all javascript events wired up on a page using jquery↵Thanks↵↵A:↵↵as far as I know since eventListenerList haven't been included in DOM 3 there is still no way to actually do it natively in js.↵if it's just for debuging you can use tool such as visual event (http://www.sprymedia.co.uk/article/Visual+Event ) which know how majors libs suscribe events and how to read in it.↵↵
Values
Token Negative-pole strength jQuery0.044 .↵0.000 I0.003 tried0.061 :↵0.000 Event0.000 .obs0.032 ervers0.000 .each0.000 (function0.008 (item0.000 )0.000 {↵0.000 0.000 if0.296 (item0.027 [0.026 00.000 ]0.006 ==0.200 element0.000 )0.022 {↵0.068 0.000 console0.000 .log0.000 (item0.030 [0.067 20.000 ])↵0.269 1.154 }↵1.120 });↵↵0.042 I0.000 also0.000 looked0.013 at0.000 List0.011 all0.000 javascript0.008 events0.018 -
1.15
… constant, $Q_l$ ($1\leq l \leq k$) an $l-$homogeneous polynomial and $Q_k \neq 0$ .↵↵The factor problem has been …
All 512 tokens
,k_n$; the inequality $$\label{problema}↵M \Vert P_1 \cdots P_n\Vert \ge \, \Vert P_1 \Vert \cdots \Vert P_n \Vert$$ holds, where $\Vert P \Vert = \sup_{\Vert x \Vert_X=1} \vert P(x)\vert$. We also study a variant of the problem in which we require the polynomials to be homogeneous.↵↵Recall that a function $P:X\rightarrow {\mathbb K}$ is a continuous $k-$homogeneous polynomial if there is a continuous $k-$linear function $T:X^k\rightarrow {\mathbb K}$ for which $P(x)=T(x,\cdots,x)$. A function $Q:X\rightarrow {\mathbb K}$ is a continuous polynomial of degree $k$ if $Q=\sum_{l=0}^k Q_l$ with $Q_0$ a constant, $Q_l$ ($1\leq l \leq k$) an $l-$homogeneous polynomial and $Q_k \neq 0$ .↵↵The factor problem has been studied by several authors. In [@BST], C. Benítez, Y. Sarantopoulos and A. Tonge proved that, for continuous polynomials, inequality (\[problema\]) holds with constant $$M=\frac{(k_1+\cdots + k_n)^{(k_1+\cdots +k_n)}}{k_1^{k_1} \cdots k_n^{k_n}}$$ for any complex Banach space. The authors also showed that this is the best universal constant, since there are polynomials on $\ell_1$ for which equality prevails. For complex Hilbert spaces and homogeneous polynomials, D. Pinasco proved in [@P] that the optimal constant is $$\nonumber↵M=\sqrt{\frac{(k_1+\cdots + k_n)^{(k_1+\cdots +k_n)}}{k_1^{k_1} \cdots k_n^{k_n}}}.$$ This is a generalization of the result for linear functions obtained by Arias-de-Reyna in [@A]. In [@CPR], also for homogeneous polynomials, D. Carando, D. Pinasco and the author proved that for any complex $L_p(\mu)$ space, with $dim(L_p(\mu))\geq n$
Values
Token Negative-pole strength constant0.000 ,0.029 $0.000 Q0.000 _l0.000 $0.072 ($0.030 10.092 \0.000 le0.000 q0.000 l0.000 \0.000 le0.000 q0.023 k0.000 $0.000 )0.133 an0.000 $0.249 l0.000 -$0.122 hom0.018 ogeneous0.028 polynomial0.105 and0.027 $0.079 Q0.000 _k0.000 \0.043 ne1.151 q0.933 0.806 00.524 $0.275 .↵↵0.000 The0.000 factor0.021 problem0.434 has0.008 been0.000
Read more
Each token is shaded by negative-pole strength, as a fraction of the neuron's max activation. Each window shows up to 30 tokens before the peak and 10 after it.
Explanation scores on held-out text
How well a judge with only the hypothesis predicts the unit on new text. 0.5 is chance.
Read more
The judge reads 32-token windows of corpus text that the proposer never saw. Detection: it picks the windows that activate the unit. Fuzzing: it checks whether the marked tokens are the active ones. Recorded, not gated.
Detection recall by activation strength
False alarms on inactive windows: 0%.
- Judge
- deepseek-flash
- Held-out windows
- 23 active of 4,000
- Judged
- 26 detection · 15 fuzzing
- Detection outcomes
- 11 missed · 0 false alarm · 2 hit · 13 correct rejection
- Seed
- 3803934270 · corpus.jsonl
Detection windows (26), the explanation's mistakes first
- missed 1.13 · sim 0.09 5*g = -4*z + 117, g - 6*g - 3*z = 131. Suppose 22*u
- missed 1.00 · sim 0.04 - 2*m + 10 = 20*u, u = -3*m + 3. Let f = u - g. Is f
- missed 0.92 · sim 0.04 - 3*b = 5*g - 2042, b - 814 = -2*g. Is 34 a factor
- missed 0.76 · sim 0.06 2*w + 171 = -2*s + 3*w. Let n = v - s. Is n a multiple of 26
- missed 0.73 · sim 0.07 *b + 3*k - 4011 = -394*b. Is 12 a factor of b?↵True↵Suppose -
- missed 0.71 · sim 0.02 Suppose 3*c + 25 = 34. Suppose -3*b = b + 3*f - 665, 4
- missed 0.70 · sim -0.06 .126-19.001, p = .034) times higher in patients with mucosal lesions than in those without lesions
- missed 0.65 · sim 0.07 . Rees, the Golden Flashes compiled a 7–2 record (3–1 against MAC opponents), finished in a tie for third place in the
- missed 0.65 · sim 0.04 ?↵False↵Suppose -2*j + 3*t - t = 2, -2*t - 4 = -5*j. Let d(w
- missed 0.63 · sim 0.09 lambda^{n-1}n}{n!}=\sum_{n=1}^\infty \frac{d}{d\lambda}\big(\
- missed 0.61 · sim 0.04 divide c?↵True↵Let z = 90 + 211. Suppose y + 4*y = -4*b - 287
- hit 1.12 · sim 0.13 );↵↵ if (!m_pInstance)↵ {↵ return;↵ }↵↵ // If the other 2 bugs are still alive, make unlootable
- hit 0.80 · sim -0.09 )) {↵ setCellStyle(cell.1, red)↵ } else {↵ setCellStyle(cell.1, yellow)↵ }↵ }↵}↵↵Saving the Excel
- correct rejection 0.28 · sim 0.03 AMD will undoubtedly come down to budget versus performance, as Lenovo is pricing the AMD version of this 14-inch laptop starting at just $849.
- correct rejection 0.26 · sim 0.03 USA'↵author:↵- G Sciolla↵- C J Martoff↵bibliography:↵- 'all\_DM.bib'↵title: Gaseous
- correct rejection 0.19 · sim -0.02 that you are following?↵It seems like you are importing Twitter Bootstrap 4.3.1↵↵But as I know, Offical Bootstrap still not provide Tree
- correct rejection 0.19 · sim 0.15 rogram stability. The grouping of most varieties agreed well with previous reports based on morphological characters. As a vegetative-propagated species, viral diseases are a
- correct rejection 0.17 · sim -0.02 "missing". When we look at the volume in the Array management, there are two entries for each slot for slots 1-12. One
- correct rejection 0.13 · sim 0.02 COPD is characterised by a chronic inflammatory process in the pulmonary tissue, with a pattern different from bronchial asthma, associated with extrapulmonary effects
- correct rejection 0.12 · sim 0.04 column called via. The via is formed by processing an insulating layer by a photolithography process using a photosensitive polyimide or resist, followed by
- correct rejection 0.11 · sim 0.02 shouldn't be taken to represent MSC or any other entity, really... beyond just me. :)
- correct rejection 0.11 · sim -0.04 help, but let her do a lot of it herself, and make sure she’s the one to finish the job. That will give her a sense of accomplishment
- correct rejection 0.11 · sim -0.04 from two populations, a geometric perspective on their structure in high dimensional space, and a statistical learning perspective on the prospects of constructing typical-set based classifiers. In particular
- correct rejection 0.10 · sim -0.02 UserId=postgres;Password=students;Database=retrospeles;";↵ //string connectionstring = String.Format("Server={0};Port={1}
- correct rejection 0.10 · sim -0.00 ();↵ flush();↵↵ $proxylisttype = $pb->returnProxyList($_REQUEST['listtype']); // make sure request vars are clean↵
- correct rejection 0.09 · sim 0.04 then be compared to the genic and PKD1 allelic groups (Aim 3). This iterative process will allow the Variant Score (VS) associated
Fuzzing windows (15), dashed tokens were marked for the judge
- marks right · judged wrong I think that is why it is happening.↵Here is my code↵def reverse(string, output = ""):↵ if string == "":↵ print "winner:
- marks right · judged wrong k be b(3). Suppose -648 = -w + 2*w + 3*c, k = -2*w + 4*c
- marks right · judged wrong 0 = 5*j - 2*x - 3*x - 185, j = -4*x + 22. Let n =
- marks right · judged wrong False↵Let t = -343 - -525. Is t a multiple of 14?↵True↵Suppose -z +
- marks right · judged wrong ?↵True↵Let z be 4/(-12) - (-22)/(-6). Let j(n) = 4*n**2 +
- marks wrong · judged wrong is always None?↵↵A:↵↵You have to return the return value of the recursive call.↵def reverse(string, output = ""):↵ if string == "":↵
- marks wrong · judged wrong n = n + '';↵ var i = n.indexOf('.');↵ return (i == -1) ? 0 : n.length - i - 1;↵
- marks wrong · judged wrong multiple of 92?↵False↵Is 196370 a multiple of 147?↵False↵Is 18 a factor
- marks wrong · judged wrong ) use ($lowest, $highest, $min, $max) {↵ return ($max - $min) * ($elem - $lowest) / ($
- marks wrong · judged wrong of 8147788?↵False↵Does 427 divide 545789?↵False↵Is 27
- marks wrong · judged wrong 23</ParentID> ↵- <Menu>↵ <MenuID>516</MenuID> ↵ <ITEMNMBR>2
- marks wrong · judged wrong all built to the v1.4 specification, so that they’re compatible with 3D sources. Also of note are a USB input, an Ethernet port
- marks wrong · judged wrong I↵indeed consider Switzerland to be a more trustworthy/neutral party in general↵when it comes to global politics, but this obviously doesn't have to apply
- marks wrong · judged wrong Stroud↵↵#### Tetbury↵↵#### Uley↵↵#### Western Gloucestershire↵↵#### Berkeley↵↵#### Cheltenham↵↵#### Forest of Dean↵↵####
- marks wrong · judged wrong abilities to generate EPSPs and IPSPs, this is the entire point to Memristors and DARPAs SyNAPSE program, emulating
Activation and mechanism
Activation distribution
Negative-pole strength per token; bar height is log(1 + count).
Mechanism
Claimed retrospective: responds to tokens already in context.
Input attribution
- 0 back
- 5%
- 1 back
- 3%
- 2–4 back
- 6%
- 5–16 back
- 12%
- 17–64 back
- 32%
- 65+ back
- 42%
- #1 at
:-20 0.14true-2 0.13-4 0.13{ -21 0.11.hasNext-24 0.10 - #2 at
:-11 0.15}).-10 0.12(); -1 0.10(href-28 0.07$('.-24 0.04 - #3 at
else:}-1 0.19else0 0.17utilizar-121 -0.09: -159 0.09-147 0.09 - #4 (not converged) at
:return-1 0.30-2 0.220 -0.13return-167 0.09!=-6 0.07 - #5 at
if:if0 0.18Dim-56 0.08.address-74 0.06if-39 0.06Worksheet-85 -0.06
Shares of the gap to <|endoftext|> at every position but the first · converged on 4 of 5 · mean 74.8 tokens back ·
agreement with replacing one token at a time ρ = 0.18 · 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.55 | prenatal |
-7.67 | py |
+5.36 | tracted |
-5.02 |
| 2 | 电工 |
+4.32 | childbirth |
-7.12 | _py |
+4.75 | 前置 |
-4.67 |
| 3 | '*' |
+4.09 | 孕妇 |
-6.84 | >{" |
+4.61 | ora |
-4.60 |
| 4 | "*" |
+3.99 | pregnancy |
-6.80 | '%" |
+4.51 | embr |
-4.59 |
| 5 | ?>><? |
+3.97 | pregnant |
-6.80 | 穷 |
+4.19 | incest |
-4.42 |
| 6 | finite |
+3.90 | maternal |
-6.79 | ọi |
+4.14 | waitress |
-4.33 |
| 7 | 兑换 |
+3.84 | pregnancies |
-6.75 | ries |
+4.14 | 避孕 |
-4.27 |
| 8 | isplay |
+3.82 | babies |
-6.74 | (py |
+3.96 | icult |
-4.19 |
| 9 | 有色金属 |
+3.79 | 妊娠 |
-6.67 | std |
+3.94 | 哺 |
-4.19 |
| 10 | rusty |
+3.79 | embryos |
-6.66 | 举例 |
+3.92 | Harbor |
-4.17 |
Top-10 overlap 0% · cos(w, J·w) 0.52 · kurtosis 4.1 (Jacobian) / 3.3 (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 | noun | adjective | person |
| control | period | emotion | animal | ||
| category | 13 | unit | person | sport | sport |
| control | animal | sport | sport | ||
| meaning | 2 | unit | : | ____ | "to be worth" or "to be of value". |
| control | to increase the value of something. It is used to describe | to be used in a positive way. It is not to | "to be the subject of a verb, to be the | ||
| meaning | 13 | unit | "the number of the first letter of the word" in | "the number of the first letter of the word" in | "the number of the first letter of the word" in |
| control | "to be" or "to be able to" in | "to be" or "to be able to" in | "to be" or "to be able to" in |
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 (2.40), 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.
sunny. It's a good day to go for a walk. I'm going to the park. I'm going to
sunny. It's a good day to go for a walk. I'm going to the park. I'm going to
sunny. It's a good day to go for a walk. (改为同义句) It's a good day
________ than yesterday.____ hotter colder 答案: A 下列关于物质的分类正确的是
________ than yesterday. A. hotter B. colder C. hotter or colder 答案: C 下列
a lot of things. I ________ a lot of things. A. bought B. bought C. am buying D
a lot of things. I ________ a lot of things. A. bought B. bought C. am buying D
a lot of things. I ________ a lot of money. A. spent B. spent C. have spent D
some books. I bought 10 books. I bought 2 more books than I bought at the beginning of the
some books. I bought 20 books. I bought 10 more books than I did yesterday. Yesterday,
to do it. This is the motto of the University of the Philippines (UP) and the University of the Philippines Health
to do it. This is the motto of the University of the Philippines (UP) and the University of the Philippines Health
to teach. This is the philosophy of the International Association of Teachers of Mathematics (IATM). The IATM
to teach others. This is the motto of the International Olympic Committee (IOC). The IOC is a global organization of
to apply it to real life situations. This is the case with the following problem: You are given a set of numbers
there was a little girl named Lily. She loved to play with her toys and watch the stars. One day, she
there was a little girl named Lily. She loved to play with her toys and watch the stars. One day, she
there was a farmer who had a big field. He wanted to make his field grow more crops. He decided to plant
there was a farmer who had a big field. He wanted to make his field grow more crops. He decided to plant
there was a farmer who lived in a small village. He had a big field where he grew corn and potatoes. One
the 2010 census showed that the population of the United States was 318,000
the 2010 census showed that the population of the United States was 318,000
the 2010 census showed that the population of the United States was 328,000
the United States had a 10 percent chance of being hit by a terrorist attack in 2009,
the United States had a "very high" chance of being "united in the face of a common enemy" in
Wiring
The units that write most directly into this pole (upstream) and read most directly from it (downstream). See its circuit.
Read more
"Directly" means along the residual stream, through no other unit. Linked units have pages in the registry. Reported, not gated. Backfilled after the review by open-interpretability wiring-backfill, from the record's model revision and the review's prompts. It is not part of the record.
From the weights. Virtual weights, with each norm's gain folded in. They rank units but have no absolute scale. Each number is how much one unit reads of the other's write. It is signed when one vector reads another (+ means a positive activation raises the read), and a norm otherwise. Heads count through their OV circuit upstream, and through their Q, K and V reads downstream. Channels are on hover.
From activations. Averaged over this pole's peak on 11 of the review's prompts where it fired. Upstream: the first-order change in its strength when a unit's direct write is removed (+ excites). Downstream: the change in a later unit when this pole's write is removed from that unit's input alone (one of Q, K or V for a head).
From the weights
Upstream neurons
| L5/N2622 | gate | -0.107 |
| L9/N4353 | up | +0.106 |
| L9/N3105 | gate | +0.104 |
| L9/N1186 | gate | +0.095 |
| L4/N3919 | up | +0.0907 |
| L8/N2659 | up | -0.0891 |
| L11/N216 | gate | +0.0884 |
| L6/N3531 | up | -0.0875 |
| L3/N4044 | gate | -0.0865 |
| L7/N4564 | up | -0.0861 |
Upstream heads
| L10/H7 | gate | +0.281 |
| L10/H4 | up | +0.268 |
| L12/H3 | up | +0.248 |
| L9/H2 | gate | +0.235 |
| L11/H3 | up | +0.235 |
| L10/H12 | gate | +0.228 |
| L10/H13 | gate | +0.226 |
| L13/H6 | up | +0.215 |
| L13/H7 | gate | +0.213 |
| L12/H4 | up | +0.213 |
Downstream neurons
| L16/N3302 | gate | -0.206 |
| L21/N4551 | gate | -0.198 |
| L20/N3678 | gate | -0.179 |
| L20/N1299 | gate | -0.164 |
| L21/N165 | gate | -0.143 |
| L23/N4424 | gate | +0.131 |
| L15/N2217 | gate | -0.13 |
| L20/N869 | gate | -0.127 |
| L16/N2999 | gate | -0.124 |
| L20/N3058 | gate | -0.124 |
Downstream heads
| L14/H7 | v | +0.41 |
| L14/H8 | v | +0.41 |
| L14/H9 | v | +0.41 |
| L14/H10 | v | +0.41 |
| L14/H11 | v | +0.41 |
| L14/H12 | v | +0.41 |
| L14/H13 | v | +0.41 |
| L21/H7 | v | +0.371 |
| L21/H8 | v | +0.371 |
| L21/H9 | v | +0.371 |
From activations
Upstream neurons
| L12/N3071 | +0.151 | |
| L2/N4520 | +0.146 | |
| L4/N3130 | -0.133 | |
| L9/N2146 | +0.107 | |
| L9/N4353 | -0.1 | |
| L9/N2027 | +0.0958 | |
| L9/N1682 | +0.0839 | |
| L7/N4340 | -0.0804 | |
| L6/N1590 | -0.0794 | |
| L9/N4316 | +0.0758 |
Upstream heads
| L12/H13 | -0.293 | |
| L10/H7 | -0.281 | |
| L7/H2 | +0.269 | |
| L12/H11 | +0.209 | |
| L7/H10 | +0.202 | |
| L8/H9 | +0.199 | |
| L9/H1 | -0.191 | |
| L8/H7 | +0.179 | |
| L6/H12 | +0.177 | |
| L4/H12 | +0.165 |
Downstream neurons
| L14/N1769 | -0.425 | |
| L23/N1863 | -0.324 | |
| L23/N1121 | +0.269 | |
| L18/N4366 | +0.252 | |
| L16/N3488 | +0.242 | |
| L16/N5 | +0.24 | |
| L23/N2505 | -0.237 | |
| L23/N2607 | +0.227 | |
| L23/N4283 | +0.204 | |
| L18/N2390 | -0.195 |
Downstream heads
| L14/H10 | v | +0.747 |
| L14/H1 | v | +0.282 |
| L21/H9 | v | +0.194 |
| L18/H9 | v | +0.153 |
| L19/H8 | v | +0.0991 |
| L14/H5 | q | +0.0895 |
| L15/H1 | v | +0.0861 |
| L14/H2 | v | +0.0852 |
| L14/H11 | v | +0.0804 |
| L23/H1 | v | +0.0742 |
Covariance and confounds
Confounds
- Token identity R²
- 0.25
- Position R²
- 0.00
- Frequency r
- 0.09
- Best trivial baseline
- token identity · 0.71
- Hypothesis
- 0.71 ✗
}}{success)v (! =={\ != });
recoveryelse_INCLUDED
Co-activating neuron poles
| Pole | Lift ≥ | Both | ρ | r |
|---|---|---|---|---|
| N133− | 30.7 | 74 | +0.04 | -0.11 |
| N423− | 16.9 | 44 | +0.01 | -0.05 |
| N603− | 16.4 | 43 | +0.03 | -0.06 |
| N373+ | 16.0 | 42 | +0.07 | +0.11 |
| N2094− | 15.5 | 41 | +0.00 | -0.03 |
| N2797− | 15.5 | 40 | -0.01 | -0.01 |
| N1629− | 14.8 | 39 | +0.02 | -0.05 |
| N679+ | 14.2 | 38 | +0.02 | +0.06 |
| N4541+ | 14.2 | 38 | +0.00 | +0.02 |
| N2750+ | 14.2 | 38 | +0.00 | +0.01 |
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
- N133, N423, N603
- KL pole alone
- 1.11e-05
- KL partners
- 6.79e-05
- KL together
- 7.88e-05
- Redundancy ratio
- 0.99
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-10-26 14:25 UTC
- Max activation
- 2.3971
- Selection
- random (seed 2243517164)
- Corpus
- corpus.jsonl · 199,896 tokens · seeded sample of 477/500 docs (≤ 200,000 tokens, seed 0) · 512-token windows every 256 tokens · source NeelNanda/pile-10k@127bfedc (data/*.parquet, first 500 docs) (inferred) · licence bigscience-bloom-rail-1.0
- Model revision
- 060db6499f32 · float32
- Ran on
- scan mps:0 · review mps:0
- Run cost
- 20.2 min (slowest: proposer, 14.0 min) · 4 LLM calls