Qwen/Qwen2.5-0.5B · L19/N937 · 20261024T153002Z
Experiment 2 of 2 on this neuron, most conclusive first · record
The pole fires on the token that carries a character-level piece of a machine-formatted literal rather than a word: the digits of an IP/port/host address written in a machine slot ('port=5432', 'Port 5432', 'listens on 5432', 127.0.0.1), URL scheme and path components ('://', '/LICENSE' in http://www.apache.org/licenses/LICENSE-2.0), and byte-fallback tokens that decode to '�' (partial UTF-8 bytes of a CJK character the tokenizer splits - its scan maximum, 6.31, is a partial byte of 风/向 inside a Java comment). It stays at the ~0.1 floor for whole words, ordinary prose, whole non-ASCII characters (温度), bare domains and email addresses, and the same digits in non-address frames ('the order number is 5432', 'the config sets timeout=5432'); its negative pole is the opposite register, peaking on ordinary function words in narrative prose (' out' 10.1, ' for' 9.8, ' a' 8.0, ' under', ' in').
The whole hypothesis
The pole fires on the token that carries a character-level piece of a machine-formatted literal rather than a word: the digits of an IP/port/host address written in a machine slot ('port=5432', 'Port 5432', 'listens on 5432', 127.0.0.1), URL scheme and path components ('://', '/LICENSE' in http://www.apache.org/licenses/LICENSE-2.0), and byte-fallback tokens that decode to '�' (partial UTF-8 bytes of a CJK character the tokenizer splits - its scan maximum, 6.31, is a partial byte of 风/向 inside a Java comment). It stays at the ~0.1 floor for whole words, ordinary prose, whole non-ASCII characters (温度), bare domains and email addresses, and the same digits in non-address frames ('the order number is 5432', 'the config sets timeout=5432'); its negative pole is the opposite register, peaking on ordinary function words in narrative prose (' out' 10.1, ' for' 9.8, ' a' 8.0, ' under', ' in').
Hard negatives 9/10 rejected · holdouts 2/6 fired (independent observations; 16 probes) · P(useful) 0.51
specificity 0.90 · sensitivity 0.33 · counterfactual reproduction 1.00 · protocol v0.7
�429/LICENSE:// https |=" (
Adversarial review
positive_holdout: 2/6 passed; hard_negative: 9/10 passed; counterfactual: 8/8 passed; lookahead_consistency: 1/1 passed. Failed gates: sensitivity, beats_confound_baseline.
All 25 probes
| Test | Input | Expected | Observed | |
|---|---|---|---|---|
| ✗ | positive holdout | apiVersion: apps/v1
kind: Deployment
metadata:
name: orders-api
namespace: production
labels:
app.kubernetes.io/name: orders-api
app.kubernetes.io/component: backend
app.kubernetes.io/part-of: commerce-platform
app.kubernetes.io/version: "2.14.3"
annotations:
deployment.kubernetes.io/revision: "41"
kubernetes.io/change-cause: "roll out the order routing fix requested by the checkout team"
spec:
replicas: 3
revisionHistoryLimit: 10
selector:
matchLabels:
app.kubernetes.io/name: orders-api
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
template:
metadata:
labels:
app.kubernetes.io/name: orders-api
spec:
terminationGracePeriodSeconds: 30
containers:
- name: orders-api
image: registry.prod.internal/commerce/orders-api:2.14.3
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8080
protocol: TCP
env:
- name: DATABASE_URL
value: "postgres://[email protected]:6432/orders"
- name: REDIS_HOST
value: "cache.prod.internal"
- name: REDIS_PORT
value: "6379"
- name: LOG_LEVEL
value: "info"
readinessProbe:
httpGet:
path: /healthz/ready
port: 8080
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /healthz/live
port: 8080
initialDelaySeconds: 15
periodSeconds: 20
resources:
requests:
cpu: "250m"
memory: "512Mi"
limits:
cpu: "1"
memory: "1Gi"
---
apiVersion: v1
kind: ConfigMap
metadata:
name: orders-api-config
namespace: production
data:
LOG_FORMAT: "json"
UPSTREAM_TIMEOUT_MS: "2500"
FEATURE_FLAGS: "reserve,reconcile,audit"
---
apiVersion: v1
kind: Service
metadata:
name: orders-api
namespace: production
annotations:
service.beta.kubernetes.io/aws-load-balancer-type: nlb
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: orders-api
ports:
- name: http
port: 80
targetPort: 8080
protocol: TCP
- name: admin
port: 9090
targetPort: 9090
protocol: TCP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: orders-api
namespace: production
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: nginx
rules:
- host: orders.prod.internal
http:
paths:
- path: /api/v1/orders
pathType: Prefix
backend:
service:
name: orders-api
port:
number: 80
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: orders-api
namespace: production
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: orders-api
minReplicas: 3
maxReplicas: 12
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 80
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: orders-api
namespace: production
spec:
podSelector:
matchLabels:
app.kubernetes.io/name: orders-api
policyTypes:
- Ingress
- Egress
ingress:
- from:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: ingress-nginx
ports:
- protocol: TCP
port: 8080
egress:
- to:
- ipBlock:
cidr: 10.20.0.0/16
ports:
- protocol: TCP
port: 6432 A long multi-document Kubernetes manifest places port numbers, a postgres DSN, URL paths, slash paths and a CIDR block deep inside a machine format absent from the examples, so the hypothesis predicts firing. |
active | 1.385 |
| ✓ | positive holdout | String jdbcUrl = "jdbc:postgresql://10.20.30.40:5432/inventory?sslmode=require&connectTimeout=10";
DataSource pool = new PGSimpleDataSource();
pool.setURL(jdbcUrl);
String check = "SELECT 1 FROM health_check"; A JDBC DSN in Java carries IP digits, a port and the '://' scheme inside a string literal, a machine format unlike the examples, so the hypothesis predicts firing. |
active | 3.301 |
| ✗ | positive holdout | use std::net::SocketAddr;
const HEALTH_ENDPOINT: &str = "https://api.example.com/v2/health";
const DEFAULT_BIND: &str = "0.0.0.0:8080";
fn main() {
let addr: SocketAddr = DEFAULT_BIND.parse().unwrap();
println!("serving on {}", addr);
} Rust source puts a URL literal and a bind socket address in a new genre, so the hypothesis predicts firing on the '://', path and address-digit tokens. |
active | 0.977 |
| ✓ | positive holdout | server {
listen [2001:db8:85a3::8a2e:370:7334]:443 ssl;
server_name shop.internal;
location /api/v3/ {
proxy_pass http://[2001:db8:85a3::8a2e:370:7334]:8080;
}
} IPv6 addresses and port digits sit in nginx configuration slots, and the hypothesis's IP/port clause should generalize beyond its IPv4 examples, so it predicts firing. |
active | 3.024 |
| ✗ | positive holdout | In the scanned ledger the scribe marked ꙮ and 𑀓 in the margin beside the entry. The archivist transcribed the rest of the page without comment. Rare Cyrillic and Brahmi characters in ordinary prose should fall back to bytes that decode to '�', which the hypothesis says fire regardless of script. |
active | 1.238 |
| ✗ | positive holdout | The staging service listens on port 8443 and forwards admin traffic to the internal gateway. Operators reach it through the VPN after the nightly deploy. A port written in prose as 'listens on port 8443', a paraphrase of the claimed 'listens on 5432' slot, so the hypothesis predicts firing outside code. |
active | 0.651 |
| ✓ | hard negative | The invoice went to the wrong department again; the order number is 5432 and the customer has called twice. The digits 5432 appear in the non-address frame the hypothesis names explicitly, so it predicts the floor. |
inactive | 0.359 |
| ✓ | hard negative | The worker config sets timeout=5432 milliseconds for each socket, so a stalled transfer eventually errors out. A machine-looking assignment holds 5432 but not an address, the exact non-address case the hypothesis puts at the floor. |
inactive | 0.271 |
| ✓ | hard negative | We upgraded to nginx version 1.25.3 last night, and the changelog mentions several security fixes. A dotted numeric literal that is a version number rather than IP/port/host address digits, so the hypothesis predicts inactivity. |
inactive | 0.460 |
| ✓ | hard negative | The inventory spreadsheet lists the laptop's MAC as 00:1A:2B:3C:4D:5E, but its asset tag is missing. A colon-separated hardware address is not the IP/port/host address of the hypothesis's enumeration, so it predicts the floor. |
inactive | 0.255 |
| ✓ | hard negative | The article recounts how the port of Marseille handled 5432 ships last year, a record for the region. The word 'port' in its maritime sense followed by 5432 is a same-word other-sense near-miss with no network address slot, so the hypothesis predicts inactivity. |
inactive | 0.543 |
| ✓ | hard negative | I read about the merger on example.com yesterday; for details, email [email protected] and ask for the appendix. A bare domain and a bare email address are both explicitly at the hypothesis's floor, with no URL scheme, path or address slot. |
inactive | 0.447 |
| ✗ | hard negative | 今天温度达到了三十八度,大家都把空调开到了最大。 Common Chinese characters including the hypothesis's own 温度 example are whole non-ASCII tokens, which it says stay at the floor. |
inactive | 2.740 |
| ✓ | hard negative | def load_settings(path):
"""Read the configuration file and return a dictionary of options."""
return parse(read(path)) Code-register text containing only identifiers and ordinary words with no numeric, URL or address literal, so the hypothesis predicts the floor rather than mere code register. |
inactive | 0.438 |
| ✓ | hard negative | The build script drops the artifact into /opt/acme/releases/latest/bin before the deploy step runs. Slash-separated path components with no URL scheme or host; the hypothesis claims URL scheme and URL path components, so a bare filesystem path is predicted inactive. |
inactive | 0.344 |
| ✓ | hard negative | Her email signature reads mailto:[email protected], which the crawler picked up by mistake. A URI scheme without '://' wrapping an email address falls outside the hypothesis's URL clause and its email floor, so it predicts inactivity. |
inactive | 0.216 |
| ✓ | counterfactual | The config sets port=5432. -> The config sets timeout=5432. | Δ 0.68 | Δ 0.68 |
| ✓ | counterfactual | The port number is 5432. -> The order number is 5432. | Δ 0.57 | Δ 0.56 |
| ✓ | counterfactual | client.connect("127.0.0.1"); -> client.connect("localhost"); | Δ 0.63 | Δ 0.63 |
| ✓ | counterfactual | The server listens on 5432 for connections. -> The server listens on 8080 for connections. | Δ 0.58 | Δ 0.58 |
| ✓ | counterfactual | The value 风力 was recorded today. -> The value 温度 was recorded today. | Δ 0.32 | Δ 0.32 |
| ✓ | counterfactual | See http://www.apache.org/licenses/LICENSE-2.0 for the terms. -> See the license at the old project site for the terms. | Δ 0.26 | Δ 0.26 |
| ✓ | counterfactual | The committee met on a cold morning. -> The committee met on a warm morning. | Δ 0.00 | Δ 0.00 |
| ✓ | counterfactual | The function returns a string. -> The method returns a string. | Δ -0.01 | Δ -0.01 |
| ✓ | lookahead consistency | The config sets port=5432.; The port number is 5432.; client.connect("127.0.0.1");; The server listens on 5432 for connections.; The value 风力 was recorded today.; See http://www.apache.org/licenses/LICENSE-2.0 for the terms.; The committee met on a cold morning.; The function returns a string. claimed retrospective; measured retrospective (KL=0.0001362, tokens=['7', '2', '0', '.html', '9']) |
Minimal pairs
| # | Base → counterfactual | Expected Δ | Observed Δ | Sufficiency | Necessity |
|---|---|---|---|---|---|
| 1 | The config sets port=5432. → The config sets timeout=5432. |
0.68 | 0.68 | 0.47 effect 0.000114 matched 0.000122 / 0.00103 |
0.34 effect 9.8e-06 matched 2e-05 / 0.000414 |
| 2 | The port number is 5432. → The order number is 5432. |
0.57 | 0.56 | 0.62 effect 0.000519 matched 0.000262 / 0.00634 |
0.50 effect 2.79e-05 matched 3.02e-05 / 0.000333 |
| 3 | client.connect("127.0.0.1"); → client.connect("localhost"); |
0.63 | 0.63 | — | — |
| 4 | The server listens on 5432 for connections. → The server listens on 8080 for connections. |
0.58 | 0.58 | 0.72 effect 0.000855 matched 0.000449 / 0.00671 |
0.41 effect 3.48e-05 matched 6.47e-05 / 0.000588 |
| 5 | The value 风力 was recorded today. → The value 温度 was recorded today. |
0.32 | 0.32 | — | — |
| 6 | See http://www.apache.org/licenses/LICENSE-2.0 for the terms. → See the license at the old project site for the terms. |
0.26 | 0.26 | — | — |
| 7 | The committee met on a cold morning. → The committee met on a warm morning. |
0.00 | 0.00 | — | — |
| 8 | The function returns a string. → The method returns a string. |
-0.01 | -0.01 | — | — |
Read more
Δ is the base prompt's peak positive-pole strength minus the counterfactual's, as a fraction of the max activation.
Each causal score ranks the pole's patch effect among the 32 same-layer neurons that change as much between each pair, so 0.5 is typical. Sufficiency patches clean into corrupted, and necessity corrupted into clean. The score is the median over 3 non-control pairs, on next-token KL. Median effect 0.000519 (sufficiency) and 2.79e-05 (necessity). In the table, each cell gives the percentile, the pole's signed effect, and the matched neurons' median and largest |effect|, in nats of KL. Self-repair (the hydra effect) was mitigated by freezing downstream MLP outputs.
Top-activating examples
Hover a token for its value.
-
6.31
… ��气 */↵ public String weather;↵↵ /** ���向 */↵ @SerializedName("WD")↵ public String wind;↵↵ /** ���力 */↵ @SerializedName("WS")↵ …
All 417 tokens
package tk.woppo.sunday.model;↵↵import android.database.Cursor;↵↵import com.google.gson.Gson;↵import com.google.gson.annotations.SerializedName;↵↵import java.util.HashMap;↵↵import tk.woppo.sunday.dao.WeatherDataHelper;↵import tk.woppo.sunday.dao.WeatherTodayDataHelper;↵↵/**↵ * Created by Ho on 2014/7/4.↵ */↵public class WeatherTodayModel extends BaseModel {↵↵ private static final HashMap<String, WeatherTodayModel> CACHE = new HashMap<String, WeatherTodayModel>();↵↵ /** ���市ID */↵ @SerializedName("cityid")↵ public String id;↵↵ /** ���市名称 */↵ @SerializedName("city")↵ public String cityName;↵↵ /** ��度 */↵ public String temp;↵↵ /** ��气 */↵ public String weather;↵↵ /** ���向 */↵ @SerializedName("WD")↵ public String wind;↵↵ /** ���力 */↵ @SerializedName("WS")↵ public String ws;↵↵ /** ���度 */↵ @SerializedName("SD")↵ public String sd;↵↵ /** 发布时间 */↵ public String time;↵↵ private static void addToCache(WeatherTodayModel model) {↵ CACHE.put(model.id, model);↵ }↵↵ private static WeatherTodayModel getFromCache(String id) {↵ return CACHE.get(id);↵ }↵↵ public static WeatherTodayModel fromJson(String json) {↵ return new Gson().fromJson(json, WeatherTodayModel.class);↵ }↵↵ public static WeatherTodayModel fromCursor(Cursor cursor) {↵ String id = cursor.getString(cursor.getColumnIndex(WeatherDataHelper.WeatherDBInfo.ID));↵ WeatherTodayModel model = getFromCache(id);↵ if (model != null) {↵ return model;↵ }↵ model = new Gson().fromJson(cursor.getString(cursor.getColumnIndex(WeatherTodayDataHelper.WeatherTodayDBInfo.JSON)), WeatherTodayModel.class);↵ addToCache(model);↵ return model;↵ }↵↵ public static class WeatherTodayRequestData {↵ public WeatherTodayModel weatherinfo;↵ }↵}↵
Values
Token Positive-pole strength �0.013 �0.000 气0.000 */↵0.000 0.000 public0.000 String0.034 weather0.000 ;↵↵0.000 0.036 /**0.535 �0.291 �5.981 �1.910 向0.000 */↵0.000 0.000 @0.000 SerializedName0.000 ("0.000 WD0.000 ")↵0.000 0.000 public0.000 String0.034 wind0.000 ;↵↵0.000 0.018 /**0.775 �0.749 �6.310 �1.980 力0.263 */↵0.000 0.000 @0.000 SerializedName0.000 ("0.283 WS0.012 ")↵0.000 0.000 -
5.31
… status of the experimental effort in this field.'↵address:↵- 'Massachusetts Institute of Technology, 77 Massachusetts Avenue, Cambridge, MA 02139, USA'↵- 'Temple …
All 609 tokens
---↵abstract: 'Dark Matter detectors with directional sensitivity have the potential of yielding an unambiguous positive observation of WIMPs as well as discriminating between galactic Dark Matter halo models. In this article, we introduce the motivation for directional detectors, discuss the experimental techniques that make directional detection possible, and review the status of the experimental effort in this field.'↵address:↵- 'Massachusetts Institute of Technology, 77 Massachusetts Avenue, Cambridge, MA 02139, USA'↵- 'Temple University, 1900 N. 13-th Street, Philadelphia, PA 19122, USA'↵author:↵- G Sciolla↵- C J Martoff↵bibliography:↵- 'all\_DM.bib'↵title: Gaseous Dark Matter Detectors↵---↵↵Introduction↵============↵↵Astronomical and cosmological observations have recently shown that Dark Matter (DM) is responsible for 23% of the energy budget of the Universe and 83% of its mass [@Hinshaw2008]. The most promising candidate for Dark Matter is the so-called Weakly Interacting Massive Particle (WIMP). The existence of WIMPs is independently suggested by considerations of Big Bang cosmology and theoretical supersymmetric particle phenomenology [@LeeWeinberg; @Weinberg82; @Jungman1996].↵↵Over the years, many direct detection experiments have been performed to search for nuclear recoils due to elastic scattering of WIMPs off the nuclei in the active volume of the detector. The main challenge for these experiments is to suppress the backgrounds that mimic WIMP-induced nuclear recoils. Today’s leading experiments have achieved excellent rejection of electromagnetic backgrounds, i.e., photons, electrons and alpha particles, that have a distinct signature in the detector. However, there are sources of background for which the detector response is nearly identical to that of a WIMP-induced recoil, such as the coherent scattering of neutrinos from the sun [@Monroe2007], or the elastic scattering of neutrons produced either by natural radioactivity or by high-energy cosmic rays.↵↵While neutron and neutrino interactions do not limit today’s experiments, they are expected to become dangerous sources of background when the scale of DM experiments grows to fiducial masses of several tons. In traditional counting experiments, the presence of such backgrounds could undermine the unambiguous identification of a Dark Matter signal because neutrinos are impossible to suppress by shielding and underground neutron backgrounds are notoriously difficult to predict [@Mei2006].↵↵An unambiguous positive identification of a Dark Matter signal even in presence of unknown amounts of irreducible backgrounds could still be achieved if one could correlate the observation of a nuclear recoil in the detector with some unique astrophysical signature which no background could mimic. This is the idea that motivates directional detection of Dark Matter.↵↵The Dark Matter Wind ↵---------------------↵↵The observed rotation curve of our Galaxy suggests that at the galactic radius of t
Values
Token Positive-pole strength status0.194 of0.102 the0.099 experimental0.261 effort0.006 in0.041 this0.060 field0.077 .'↵0.000 address0.072 :↵0.000 -0.075 '0.119 Mass0.235 achusetts0.000 Institute0.000 of0.000 Technology0.069 ,0.000 0.000 70.000 71.007 Massachusetts0.000 Avenue0.003 ,0.056 Cambridge0.143 ,0.085 MA0.000 0.000 00.015 25.305 11.838 31.076 90.000 ,0.071 USA0.243 '↵0.000 -0.127 '0.131 Tem0.233 ple0.000 -
4.77
… NpgsqlDataAdapter();↵ string tab;↵ public datubaze()↵ {↵ InitializeComponent();↵ string connectionstring = "Server=localhost;Port=5432;UserId=postgres;Password=students …
All 654 tokens
Q:↵↵Listbox returns System.Data.DataRowView instead of values↵↵I am doing a project for my school, where I have to make a C# Windows Forms application that lets me interact with my PostgreSQL database. I have made a listbox, which is supposed to get the names of the tables from my database, and when I select these names, data from that table is show in the datagridview object in the form. The problem is, however, all my listbox values are System.Data.DataRowView, and datagridview only displays values from the first table in the list.↵The code: ↵ DataTable tabulusaraksts = new DataTable();↵ DataTable tabula = new DataTable();↵ NpgsqlDataAdapter adapter = new NpgsqlDataAdapter();↵ NpgsqlDataAdapter adapter2 = new NpgsqlDataAdapter();↵ string tab;↵ public datubaze()↵ {↵ InitializeComponent();↵ string connectionstring = "Server=localhost;Port=5432;UserId=postgres;Password=students;Database=retrospeles;";↵ //string connectionstring = String.Format("Server={0};Port={1};" +↵ // "User Id={2};Password={3};Database={4};",↵ // serveris.ToString(), port.ToString(), user.ToString(),↵ // password.ToString(), database.ToString());↵ NpgsqlConnection ncon = new NpgsqlConnection(connectionstring);↵ NpgsqlCommand listfill = new NpgsqlCommand("select table_name from INFORMATION_SCHEMA.tables WHERE table_schema = ANY (current_schemas(false));", ncon);↵ adapter.SelectCommand = listfill;↵ adapter.Fill(tabulusaraksts);↵ listBox1.DataSource = tabulusaraksts;↵ listBox1.DisplayMember = "table_name";↵ NpgsqlCommand showtable = new NpgsqlCommand("select * from " + tab +";" , ncon);↵ adapter2.SelectCommand = showtable;↵ }↵public void listBox1_SelectedIndexChanged(object sender, EventArgs e)↵ {↵↵ tab = listBox1.GetItemText(listBox1.SelectedItem);↵ adapter2.Fill(tabula);↵ dataGridView1.DataSource = tabula;↵}↵↵A:↵↵That code should work. I tried it with some test data and ListBox was filled with correct values.↵To be sure, try to also set ValueMember like ↵listBox1.DisplayMember = "table_name";↵↵I think the best approach is to add DataTable rows to your ListBox using loop or Linq list. After filling tabulusaraksts iterate through DataRows and add them as items to ListBox, without setting DataSource Something like this (Linq):↵adapter.SelectCommand = listfill;↵adapter.Fill(tabulusaraksts);↵listBox1.Items.AddRange(tabulusaraksts.AsEnumerable().Select(row => row[0].ToString()).ToArray());↵NpgsqlCommand showtable = new NpgsqlCommand("select * from " + tab +";" , ncon);↵adapter2.SelectCommand = showtable;↵↵or, using foreach loop↵adapter.SelectCommand = listfill;↵adapter.Fill(tabulusaraksts);↵↵listBox1.Items.Clear();↵foreach (DataRow row in tabulusaraksts.Rows)↵{↵ listBox1.Items.add(tabulusaraksts[0].ToString());↵}↵↵NpgsqlCommand showtable = new NpgsqlCommand("select * from " + tab +";" , ncon);↵adapter2.SelectCommand =
Values
Token Positive-pole strength Npgsql0.113 DataAdapter0.190 ();↵0.114 0.372 string0.018 tab0.000 ;↵0.086 0.307 public0.327 dat0.181 ub0.096 aze0.347 ()↵0.000 0.172 {↵0.003 0.083 InitializeComponent0.169 ();↵0.020 0.195 string0.078 connection0.267 string0.122 =0.155 "0.000 Server0.000 =localhost0.000 ;0.043 Port0.061 =1.143 50.038 44.766 30.129 20.063 ;0.106 UserId0.158 =0.000 postgres0.014 ;0.168 Password0.000 =0.000 students0.000 -
4.20
… 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 …
All 648 tokens
/*↵* Licensed to the Apache Software Foundation (ASF) under one or more↵* contributor license agreements. See the NOTICE file distributed with↵* this work for additional information regarding copyright ownership.↵* The ASF licenses this file to You under the Apache License, Version 2.0↵* (the "License"); you may not use this file except in compliance with↵* the License. You may obtain a copy of the License at↵*↵* http://www.apache.org/licenses/LICENSE-2.0↵*↵* Unless required by applicable law or agreed to in writing, software↵* distributed under the License is distributed on an "AS IS" BASIS,↵* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.↵* See the License for the specific language governing permissions and↵* limitations under the License.↵*/↵package org.apache.stanbol.entityhub.web.reader;↵↵import java.io.IOException;↵import java.io.InputStream;↵import java.lang.annotation.Annotation;↵import java.lang.reflect.Type;↵import java.util.Arrays;↵import java.util.Collections;↵import java.util.HashMap;↵import java.util.HashSet;↵import java.util.Iterator;↵import java.util.List;↵import java.util.Map;↵import java.util.Set;↵↵import javax.servlet.ServletContext;↵import javax.ws.rs.Consumes;↵import javax.ws.rs.WebApplicationException;↵import javax.ws.rs.core.Context;↵import javax.ws.rs.core.HttpHeaders;↵import javax.ws.rs.core.MediaType;↵import javax.ws.rs.core.MultivaluedMap;↵import javax.ws.rs.core.Response;↵import javax.ws.rs.core.Response.Status;↵import javax.ws.rs.ext.MessageBodyReader;↵import javax.ws.rs.ext.Provider;↵↵import org.apache.clerezza.commons.rdf.Graph;↵import org.apache.clerezza.commons.rdf.BlankNodeOrIRI;↵import org.apache.clerezza.commons.rdf.Triple;↵import org.apache.clerezza.commons.rdf.IRI;↵import org.apache.clerezza.rdf.core.serializedform.Parser;↵import org.apache.clerezza.rdf.core.serializedform.SupportedFormat;↵import org.apache.clerezza.rdf.core.serializedform.UnsupportedParsingFormatException;↵import org.apache.felix.scr.annotations.Component;↵import org.apache.felix.scr.annotations.Property;↵import org.apache.felix.scr.annotations.Reference;↵import org.apache.felix.scr.annotations.Service;↵import org.apache.stanbol.commons.indexedgraph.IndexedGraph;↵import org.apache.stanbol.entityhub.jersey.utils.JerseyUtils;↵import org.apache.stanbol.entityhub.jersey.utils.MessageBodyReaderUtils;↵import org.apache.stanbol.entityhub.jersey.utils.MessageBodyReaderUtils.RequestData;↵import org.apache.stanbol.entityhub.model.clerezza.RdfValueFactory;↵import org.apache.stanbol.entityhub.servicesapi.model.Representation;↵import org.slf4j.Logger;↵import org.slf4j.LoggerFactory;↵/**↵ * Provides support for reading Representation form Requests. This implementation↵ * supports all RDF supports as well as {@link MediaType#APPLICATION_FORM_URLENCODED}↵ * - in case the data are sent from an HTML form - and ↵ * {@link MediaType#MULTIPART_FORM_DATA} - mime encoded data.↵ * In case of an HTML form the encoding need to be spec
Values
Token Positive-pole strength file0.000 except0.000 in0.000 compliance0.000 with0.000 ↵0.000 *0.000 the0.000 License0.000 .0.000 0.000 You0.000 may0.089 obtain0.024 a0.000 copy0.081 of0.247 the0.000 License0.000 at0.000 ↵0.262 *↵0.030 *0.333 0.124 http0.735 ://0.000 www0.000 .apache0.000 .org0.000 /licenses0.026 /LICENSE4.196 -0.109 20.000 .1.397 00.000 ↵0.076 *↵0.053 *0.409 Unless0.060 required0.024 by0.006 -
4.14
… lingSurprisesAtEveryStep(item):↵ vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])↵ if not (chp or vol or frag) or 'preview …
All 100 tokens
def extractStartlingSurprisesAtEveryStep(item):↵ vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])↵ if not (chp or vol or frag) or 'preview' in item['title'].lower():↵ return None↵ if 'bu bu jing xin' in item['tags']:↵ return buildReleaseMessageWithType(item, 'Bu Bu Jing Xin', vol, chp, frag=frag, postfix=postfix)↵ return False↵
Values
Token Positive-pole strength ling0.088 Sur0.000 prises0.000 At0.280 Every0.382 Step0.090 (item0.319 ):↵0.032 v0.256 ol0.026 ,0.000 ch0.193 p0.053 ,0.000 frag0.000 ,0.286 postfix0.081 =0.000 extract0.070 Vol0.061 Chapter0.000 Fragment0.000 Post0.161 fix0.056 (item0.264 ['0.005 title0.491 '])↵0.000 if1.577 not1.202 (4.135 ch0.111 p0.032 or0.786 vol0.009 or0.416 frag0.187 )0.000 or0.002 '0.000 preview0.000 -
3.93
… ;↵↵public class DownloadFile {↵↵ private FTPClient client = new FTPClient();↵↵ public void connect() throws SocketException, IOException {↵ client.connect("127.0.0.1");↵ client …
All 591 tokens
Q:↵↵How to check if file exist when downloading from FTP↵↵I'm downloading from FTP server and I don't know exactly how to check if file already exist. What I want to do is that I retrieve filname from FTP server and then compare it with all files in folder. If file already exists then it compares next FTP filename with all files in folder and so on. ↵I already did comparison and it's working if all files from folder have same name as files on FTP server but if I add some older file then it downloads all files once again and I don't want that. ↵Here is my scratch code:↵String[] names = client.listNames();↵ File folder = new File("c:\\test\\RTR_ZIP\\");↵ String[] filename = folder.list();↵↵ for (;i<names.length;i++) {↵ name = names[i];↵↵ exists=false;↵↵ if (name.contains(".zip")) {↵↵ if (filename.length == 0) {↵ new_file = new FileOutputStream("C:\\test\\RTR_ZIP\\" + name);↵ client.retrieveFile(name, new_file);↵ j++;↵ exists=true;↵ } else {↵ for (;k<filename.length;k++) {↵ name = names[i];↵ i++;↵ 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 Positive-pole strength ;↵↵0.167 public0.224 class0.255 Download0.192 File0.165 {↵↵0.007 private0.229 FTP0.000 Client0.000 client0.209 =0.000 new0.118 FTP0.000 Client0.246 ();↵↵0.084 public0.057 void0.148 connect0.271 ()0.000 throws0.125 Socket0.265 Exception0.231 ,0.108 IOException0.299 {↵0.000 0.000 client0.185 .connect0.000 ("0.311 11.122 23.927 70.346 .2.659 00.089 .2.128 00.000 .1.180 10.406 ");↵0.000 0.001 client0.093 -
3.39
… :3129↵Registry: https://index.docker.io/v1/↵Labels:↵Experimental: true↵Insecure Registries:↵ 127.0.0.0/8↵ …
All 858 tokens
Q:↵↵Where is the Registry running↵↵I can create a container running a registry: docker run -d -p 5000:5000 --restart=always --name registry registry:2↵But docker has a default registry, I can see that the registry is at Registry: https://index.docker.io/v1/ and it must be local, but where is it - do you know?↵It is correct that if using a browser and go to: https://index.docker.io/v1/ it will take you to docker hub: https://index.docker.io/v1/↵But all my local images is local on my machine, so there must be some where the registry is running.↵You can see the registry if you do:↵docker system info↵Containers: 32↵ Running: 29↵ Paused: 0↵ Stopped: 3↵Images: 205↵Server Version: 18.06.0-ce↵Storage Driver: overlay2↵ Backing Filesystem: extfs↵ Supports d_type: true↵ Native Overlay Diff: true↵Logging Driver: json-file↵Cgroup Driver: cgroupfs↵Plugins:↵ Volume: local↵ Network: bridge host ipvlan macvlan null overlay↵ Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog↵Swarm: inactive↵Runtimes: runc↵Default Runtime: runc↵Init Binary: docker-init↵containerd version: d64c661f1d51c48782c9cec8fda7604785f93587↵runc version: 69663f0bd4b60df09991c08812a60108003fa340↵init version: fec3683↵Security Options:↵ seccomp↵ Profile: default↵Kernel Version: 4.9.93-linuxkit-aufs↵Operating System: Docker for Mac↵OSType: linux↵Architecture: x86_64↵CPUs: 2↵Total Memory: 2.934GiB↵Name: linuxkit-████████████↵ID: Q6IO:V5CP:OHJL:4KJP:ZG2X:GV5W:YHMM:2WCK:4V4O:O6T3:A4E4:BJHM↵Docker Root Dir: /var/lib/docker↵Debug Mode (client): false↵Debug Mode (server): true↵ File Descriptors: 206↵ Goroutines: 223↵ System Time: 2018-08-29T11:56:34.8224409Z↵ EventsListeners: 2↵HTTP Proxy: gateway.docker.internal:3128↵HTTPS Proxy: gateway.docker.internal:3129↵Registry: https://index.docker.io/v1/↵Labels:↵Experimental: true↵Insecure Registries:↵ 127.0.0.0/8↵Live Restore Enabled: false↵↵A:↵↵That is the default registry which is dockerhub:↵https://hub.docker.com/↵Also see:↵https://github.com/moby/moby/issues/7203↵You cannot change the default registry (which is dockerhub). What you can do is push and pull using your registry as a prefix.↵For example:↵docker push localhost:5000/yourimage↵↵docker pull localhost:5000/yourimage↵↵As per my comment below - this registry runs locally and with↵docker ps | grep registry:2↵↵you can see it running. You can then use it's id to get the logs where you will see the activity. ↵You can also make use of the api by doing a call to:↵curl -X GET http://localhost:5000/v2/_catalog↵↵This will list all the images you have pushed to your local registry.↵↵
Values
Token Positive-pole strength :0.187 30.000 10.702 21.007 90.220 ↵0.081 Registry0.150 :0.062 https1.591 ://0.223 index0.024 .docker0.105 .io0.000 /v0.000 10.000 /↵0.000 Labels0.000 :↵0.065 Experimental0.337 :0.000 true0.232 ↵0.000 In0.214 secure0.000 Reg0.000 ist0.000 ries0.060 :↵0.126 0.234 10.000 23.394 70.173 .1.129 00.038 .0.086 00.000 .0.000 00.000 /0.232 80.366 ↵0.068 -
3.39
… ul>↵</li>↵↵A:↵↵You will get some ideas from the following MSDN link that illustrates writing html from a dataset using xslt↵http://msdn.microsoft.com/en-us/librar
All 731 tokens
Q:↵↵How to change XML from dataset into HTML UL↵↵I'm working on a C# webforms application and have a datalayer which gathers information about the menu a customer can see, based on their customer number and order type.↵I was using the ASP.NET menu control for this until the qa department asked to change the menu to expand on click instead of hover. At that point, I decided to try and do the menu with a simpler css/html/jquery approach but I've hit a jam.↵I have the following method in my datalayer that gets information for the menu and returns it as XML. What I'm stuck on is how to take the XML that was being gathered, when I was using the menu control and hopefully reformat it into a UL for using in the html/css approach I'd like to do. ↵public static string BuildMenu(string cprcstnm, string docType)↵ {↵ DataSet ds = new DataSet();↵ string connStr = ConfigurationManager.ConnectionStrings["DynamicsConnectionString"].ConnectionString;↵ using (SqlConnection conn = new SqlConnection(connStr))↵ {↵ string sql = "usp_SelectItemMenuByCustomer";↵ SqlDataAdapter da = new SqlDataAdapter(sql, conn);↵ da.SelectCommand.CommandType = CommandType.StoredProcedure;↵ da.SelectCommand.Parameters.Add("@CPRCSTNM", SqlDbType.VarChar).Value = cprcstnm;↵ da.SelectCommand.Parameters.Add("@DOCID", SqlDbType.VarChar).Value = docType;↵ da.Fill(ds);↵ da.Dispose();↵ }↵ ds.DataSetName = "Menus";↵ ds.Tables[0].TableName = "Menu";↵ DataRelation relation = new DataRelation("ParentChild",↵ ds.Tables["Menu"].Columns["MenuID"],↵ ds.Tables["Menu"].Columns["ParentID"],↵ false);↵↵ relation.Nested = true;↵ ds.Relations.Add(relation);↵↵ return ds.GetXml();↵ }↵↵A sample of XMl that is output is as follows: ↵<Menus>↵- <Menu>↵ <MenuID>23</MenuID> ↵ <ITEMNMBR>0</ITEMNMBR> ↵ <Text>ACC</Text> ↵ <Description>ACC</Description> ↵ <ParentID>0</ParentID> ↵- <Menu>↵ <MenuID>34</MenuID> ↵ <ITEMNMBR>1</ITEMNMBR> ↵ <Text>BASE</Text> ↵ <Description>BASE</Description> ↵ <ParentID>23</ParentID> ↵- <Menu>↵ <MenuID>516</MenuID> ↵ <ITEMNMBR>2</ITEMNMBR> ↵ <Text>HYP</Text> ↵ <Description>HYP</Description> ↵ <ParentID>34</ParentID> ↵↵I would need to convert this to something such as :↵<ul class="dropdown">↵ <li><a href="#">ACC</a>↵ <ul class="sub_menu">↵ <li>↵ <a href="#">BASE</a>↵ <ul>↵ <li>↵ <a href="#">HYP</a>↵ <ul>↵ <li><a href="#">Terminal 1</a></li>↵ <li><a href="#">Terminal 1</a></li>↵ </ul> ↵ </li>↵ </ul>↵</li>↵↵A:↵↵You will get some ideas from the following MSDN link that illustrates writing html from a dataset using xslt↵http://msdn.microsoft.com/en-us/librar
Values
Token Positive-pole strength ul0.000 >↵0.000 </0.000 li0.000 >↵↵0.054 A0.372 :↵↵0.000 You0.003 will0.128 get0.347 some0.610 ideas0.220 from0.155 the0.142 following0.163 MSD0.211 N0.158 link0.000 that0.220 illustrates0.129 writing0.000 html0.000 from0.000 a0.035 dataset0.108 using0.160 x0.009 slt0.005 ↵0.133 http1.537 ://3.387 ms0.000 dn0.437 .microsoft0.047 .com0.602 /en0.254 -us0.000 /lib0.300 rar0.078 -
3.36
… copy of the GNU General Public License↵ * along with this program; if not, write to the Free Software↵ * Foundation, Inc., 59 Temple Place, Suite 330, Boston …
All 852 tokens
/**↵ * ScriptDev2 is an extension for mangos providing enhanced features for↵ * area triggers, creatures, game objects, instances, items, and spells beyond↵ * the default database scripting in mangos.↵ *↵ * Copyright (C) 2006-2013 ScriptDev2 <http://www.scriptdev2.com/>↵ *↵ * This program is free software; you can redistribute it and/or modify↵ * it under the terms of the GNU General Public License as published by↵ * the Free Software Foundation; either version 2 of the License, or↵ * (at your option) any later version.↵ *↵ * This program is distributed in the hope that it will be useful,↵ * but WITHOUT ANY WARRANTY; without even the implied warranty of↵ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the↵ * GNU General Public License for more details.↵ *↵ * You should have received a copy of the GNU General Public License↵ * along with this program; if not, write to the Free Software↵ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA↵ *↵ * World of Warcraft, and all World of Warcraft or Warcraft art, images,↵ * and lore are copyrighted by Blizzard Entertainment, Inc.↵ */↵↵/**↵ * ScriptData↵ * SDName: bug_trio↵ * SD%Complete: 75↵ * SDComment: Summon Player spell NYI; Poison Cloud damage spell NYI; Timers need adjustments↵ * SDCategory: Temple of Ahn'Qiraj↵ * EndScriptData↵ */↵↵#include "precompiled.h"↵#include "temple_of_ahnqiraj.h"↵↵enum↵{↵ // kri↵ SPELL_CLEAVE = 26350,↵ SPELL_TOXIC_VOLLEY = 25812,↵ SPELL_SUMMON_CLOUD = 26590, // summons 15933↵↵ // vem↵ SPELL_CHARGE = 26561,↵ SPELL_VENGEANCE = 25790,↵ SPELL_KNOCKBACK = 26027,↵↵ // yauj↵ SPELL_HEAL = 25807,↵ SPELL_FEAR = 26580,↵↵ NPC_YAUJ_BROOD = 15621↵};↵↵struct MANGOS_DLL_DECL boss_kriAI : public ScriptedAI↵{↵ boss_kriAI(Creature* pCreature) : ScriptedAI(pCreature)↵ {↵ m_pInstance = (ScriptedInstance*)pCreature->GetInstanceData();↵ Reset();↵ }↵↵ ScriptedInstance* m_pInstance;↵↵ uint32 m_uiCleaveTimer;↵ uint32 m_uiToxicVolleyTimer;↵↵ void Reset() override↵ {↵ m_uiCleaveTimer = urand(4000, 8000);↵ m_uiToxicVolleyTimer = urand(6000, 12000);↵ }↵↵ void JustDied(Unit* /*pKiller*/) override↵ {↵ // poison cloud on death↵ DoCastSpellIfCan(m_creature, SPELL_SUMMON_CLOUD, CAST_TRIGGERED);↵↵ if (!m_pInstance)↵ {↵ return;↵ }↵↵ // If the other 2 bugs are still alive, make unlootable↵ if (m_pInstance->GetData(TYPE_BUG_TRIO) != DONE)↵ {↵ m_creature->RemoveFlag(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_LOOTABLE);↵ m_pInstance->SetData(TYPE_BUG_TRIO, SPECIAL);↵ }↵ }↵↵ void JustReachedHome() override↵ {↵ if (m_pInstance)↵ {↵ m_pInstance->SetData(TYPE_BUG_TRIO, FAIL);↵ }↵ }↵↵ void UpdateAI(const uint32 uiDiff) override↵ {↵ // Return s
Values
Token Positive-pole strength copy0.184 of0.288 the0.009 GNU0.000 General0.000 Public0.000 License0.538 ↵0.000 *0.570 along0.194 with0.153 this0.202 program0.012 ;0.500 if0.183 not0.000 ,0.001 write0.000 to0.048 the0.000 Free0.000 Software0.000 ↵0.224 *0.000 Foundation0.155 ,0.089 Inc0.000 .,0.000 0.000 50.354 93.357 Temple0.017 Place0.007 ,0.000 Suite0.000 0.000 30.002 30.000 00.000 ,0.092 Boston0.000 -
3.34
{#sp1 .466}↵↵{#sp1 .466}↵↵{#sp2 .467}↵↵{#sp3 .468}↵
Values
Token Positive-pole strength !0.000 [](0.000 glas0.000 gow0.002 med0.000 j0.000 70.000 50.036 50.073 20.933 00.638 -0.215 00.063 00.435 60.788 62.729 ){0.035 #0.000 sp0.022 10.534 .0.000 40.951 61.773 63.339 }↵↵0.000 !0.011 [](0.000 glas0.024 gow0.109 med0.284 j0.149 70.000 50.000 50.052 -
3.04
… 97, 1920×1080i25, 1280×720p59.94, 1280×72 …
All 587 tokens
The VC-2 video compression standard is an open free-use video-decoding standard contributed by British Broadcasting Corporation (BBC) to the Society of Motion Picture and Television Engineers (SMPTE) standard. The VC-2 standard uses discrete-wavelet-transform (DWT) and interleaved exponential-Golomb (IEG) variable-length-encoding to achieve the desired video compression. Originally designed to compete with the prevailing H.264 standard, it is expected that DWT results in fewer blocky artifacts than the prevailing discrete-cosine-transform (DCT)-based systems. To achieve the low-delay requirement in a serial data interface (SDI) transmission system, SMPTE standardized two low-delay profiles, which include the level-64 using the (2, 2) DWT, and the level-65, using the overlapped (5, 3) DWT. It has been shown that in order to fit a high definition (HD) video into a standard definition SDI (SD-SDI) payload with excellent video quality, the level-65 compression is required.↵The VC-2 level-65 is a subset of the low-delay profile with the following attributes: 1. 4:2:2 10-bit sampling with supported resolutions 1920×1080i29.97, 1920×1080i25, 1280×720p59.94, 1280×720p50. 2. The codec uses only Low-Delay Profile. 3. The codec uses only the LeGall (5, 3) wavelet transform (wavelet index=1). 4. The wavelet depth is exactly 3 levels. 5. The slice size is fixed to be 16 (horizontal)×8 (vertical) in luminance and 8 (horizontal)×8 (vertical) in chrominance. ↵Conventionally, overlapped DWT is used in the JPEG-2000 standard which is used extensively in digital cameras and medical imaging systems. In the literature, there are many publications on how to reduce the implementation complexity of 2-D DWT. A common property of this technology is that JPEG-2000 based implementation uses an external frame-buffer memory for processing the on-chip DWT/IDWT data. Thus, such publications have primarily focused on how to: minimize the read and write access to the external memory; reduce the on-chip internal memory; speed up data processing; and choose a scan scheme to minimize the memory usage. However, an external memory typically increases costs associated with the chip package size and power consumption, as well as the overall system complexity and bill-of-material (BOM) costs.
Values
Token Positive-pole strength 90.458 70.000 ,0.030 0.000 10.000 90.000 20.000 00.000 ×0.000 10.094 00.000 80.018 00.127 i0.000 20.000 50.000 ,0.000 0.000 10.000 20.000 80.000 00.000 ×0.000 70.000 20.000 00.000 p0.003 50.000 90.229 .0.930 93.044 40.000 ,0.086 0.000 10.000 20.190 80.000 00.000 ×0.000 70.060 20.000 -
3.01
… through the IDE *will override*↵# any settings specified in this file.↵↵# For more details on how to configure your build environment visit↵# http://www.gradle.org/docs/current/userguide/build_environment.html …
All 163 tokens
# Project-wide Gradle settings.↵↵# IDE (e.g. Android Studio) users:↵# Gradle settings configured through the IDE *will override*↵# any settings specified in this file.↵↵# For more details on how to configure your build environment visit↵# http://www.gradle.org/docs/current/userguide/build_environment.html↵↵# Specifies the JVM arguments used for the daemon process.↵# The setting is particularly useful for tweaking memory settings.↵org.gradle.jvmargs=-Xmx1024m↵↵# When configured, Gradle will run in incubating parallel mode.↵# This option should only be used with decoupled projects. More details, visit↵# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects↵# org.gradle.parallel=true↵
Values
Token Positive-pole strength through0.096 the0.098 IDE0.252 *0.000 will0.271 override0.201 *↵0.098 #0.225 any0.214 settings0.123 specified0.000 in0.026 this0.000 file0.000 .↵↵0.011 #0.078 For0.349 more0.068 details0.281 on0.000 how0.038 to0.000 configure0.000 your0.000 build0.162 environment0.000 visit0.265 ↵0.000 #0.140 http0.963 ://3.013 www1.565 .gradle0.103 .org0.000 /docs0.000 /current0.076 /user0.159 guide0.238 /build0.358 _environment0.173 .html0.006
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: 10%.
- Judge
- deepseek-flash
- Held-out windows
- 17 active of 4,000
- Judged
- 20 detection · 10 fuzzing
- Detection outcomes
- 7 missed · 1 false alarm · 3 hit · 9 correct rejection
- Seed
- 2742458827 · corpus.jsonl
Detection windows (20), the explanation's mistakes first
- missed 3.08 · sim 0.13 ité Joseph Fourier UMR 5224 51, Rue des Mathématiques, Saint Martin d’Hères BP 53
- missed 2.11 · sim 0.05 a features a closed arena where Olympiada Patras plays. It is located at 24 Tisonas Street with the postcode 266
- missed 2.09 · sim 0.09 factor of 21952 and 1064?↵56↵Calculate the highest common divisor of 78678 and
- missed 1.69 · sim 0.08 (1961: 4) who had failed to designate holotype of the species, but later fulfilled all conditions for valid publication in 19
- missed 1.67 · sim 0.04 Living people↵Category:Japanese film directors↵Category:People from Fukuoka Prefecture
- missed 1.64 · sim 0.12 29656?↵337↵Calculate the greatest common divisor of 83361 and 16095.↵1
- missed 1.58 · sim 0.08 factor of 1290 and 18570.↵30↵Calculate the highest common divisor of 110398 and
- false alarm 0.27 · sim 0.18 <html>↵<body>↵<h1>Directory listing</h1>↵<hr/>↵<pre>↵<a href="management-core-3.0.4-javadoc.jar">
- hit 2.40 · sim 0.03 text button, and you'll see that the button is not reloading.↵Link to the jsbin: http://emberjs.jsbin.com/izOtIY
- hit 1.65 · sim 0.21 Firehose to stream analytics data for real-time processing.↵↵## What is Amazon Kinesis Data Streams?↵↵[Amazon Kinesis Data Streams](http://aws.amazon
- hit 1.60 · sim 0.03 評。����なスタイルが����される彼女らしいファンサービスには今年も期待したいところだ。↵↵そんな��崎とは
- correct rejection 0.91 · sim 0.08 998 - Futurewise↵↵Power generation in many homes from solar cells and wind in rural areas 1998 – Futurewise↵↵Retail and e
- correct rejection 0.65 · sim -0.01 like the dynamics of asset prices and weather measurements, where sudden changes in values may happen. For that reason they are widely employed, among many other fields, in
- correct rejection 0.43 · sim -0.08 , Congress encouraged settlement here by establishing the Armed Occupation Act. The law granted a patent for to any man who kept a gun and ammunition, built a house
- correct rejection 0.30 · sim 0.06 the C# app should take in the XML document and the XML Schema and check if the XML Document violates any of the "rules" listed in the XML schema
- correct rejection 0.30 · sim 0.01 Q:↵↵TextView Not centered in app but centered in match_constraint↵↵I've created a simple activity design using ConstraintLayout.↵Whenever I try to center a textView,
- correct rejection 0.30 · sim -0.00 the image appears predicts whether the participants are going to successfully remember the image.↵↵External incentives like money work well to stimulate the VTA, but it was unclear whether
- correct rejection 0.26 · sim 0.04 @NonNull↵ public Dialog onCreateDialog(Bundle savedInstanceState) {↵ String title = getArguments().getString(EXTRA_TITLE);↵ String message = getArguments().getString(EX
- correct rejection 0.24 · sim 0.00 setting for Gray's persistence. After initially refusing to do so, Gray apologized a few days later. On January 8, 2004
- correct rejection 0.21 · sim 0.18 323;↵ color: #e6e1dc;↵ }↵↵ .hljs-comment,↵ .hljs-quote {↵ color: #
Fuzzing windows (10), dashed tokens were marked for the judge
- marks right · judged wrong Fidel Antonio Vargas↵↵Fidel Antonio Vargas (born 28 July 1992) is a Cuban canoeist who won a silver
- marks right · judged wrong camptothecin -- is the standard of care in the treatment of advanced colorectal cancer when 5-fluorouracil (5-FU
- marks right · judged right information about Amazon Kinesis Data Firehose, see [Amazon Kinesis Data Firehose](http://docs.aws.amazon.com/firehose/latest/dev/
- marks wrong · judged wrong -form navbar-left" role="search"> ↵ <div class="form-group"> ↵ <input type="text" class="form-control" placeholder="Search"> ↵
- marks right · judged right be added.↵I fixed up the jsbin to update the button when the text changes http://emberjs.jsbin.com/izOtIYi/8
- marks wrong · judged wrong (1999)↵Naked Lie [TV] (1989)↵Roxanne: The Prize Pulitzer [TV] (198
- marks wrong · judged wrong back from your own site.↵↵4 Responses to “Oh, Boo-Hoo, Hillary”↵↵Where is the G-damn f**king flag? I want
- marks wrong · judged wrong to generate possible stories, but, as Colford says, "to make it appear as if that rises to the level of us being a collaborator with WikiLeaks
- marks wrong · judged wrong Thematic analysis of the interviews yielded three major themes related to 'management', 'regulations and policies' and 'healthcare professionals'. Management issues included managerial support
- marks wrong · judged wrong is giving all matched value↵I want to get exactly given page size result and next cursor for remaining values. ↵↵I have debugged its source code library
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
- 7%
- 17–64 back
- 48%
- 65+ back
- 34%
- #1 at
�:*/ -112 -0.61. -113 0.58Created-126 0.29�-1 0.25/**-2 0.20 - #2 (not converged) at
2:20 0.64Cambridge-5 0.33experimental-41 -0.30Massachusetts-8 0.18review-32 0.17 - #3 (not converged) at
4:5-1 0.15=-2 -0.12=localhost-5 0.12Npgsql-30 -0.10displays-78 -0.10 - #4 (not converged) at
/LICENSE:/LICENSE0 0.47License-49 -0.06You-53 0.06ASF-58 0.06://-5 -0.05 - #5 at
(:ol-21 0.78p-18 0.24(0 -0.21v-22 0.21): -23 -0.20
Shares of the gap to <|endoftext|> at every position but the first · converged on 2 of 5 · mean 54.0 tokens back ·
agreement with replacing one token at a time ρ = -0.06 · 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 | inese |
+4.63 | away |
-5.37 | 简历 |
+4.63 | 晴 |
-4.74 |
| 2 | kontakt |
+4.60 | away |
-5.31 | str |
+4.34 | undy |
-4.72 |
| 3 | 伙伴关系 |
+4.22 | 晴 |
-4.92 | carácter |
+4.21 | (DBG |
-4.70 |
| 4 | Inter |
+4.20 | -away |
-4.73 | Inter |
+4.19 | aar |
-4.61 |
| 5 | .</ |
+4.17 | 荫 |
-4.72 | class |
+3.95 | QRSTUV |
-4.51 |
| 6 | lj |
+4.13 | 之处 |
-4.68 | 参与到 |
+3.94 | iller |
-4.46 |
| 7 | "</ |
+4.11 | uploader |
-4.65 | Inter |
+3.94 | 穹 |
-4.42 |
| 8 | ,'" |
+4.10 | shaded |
-4.47 | 概念股 |
+3.83 | flix |
-4.37 |
| 9 | </ |
+4.09 | shady |
-4.40 | disrupt |
+3.77 | /place |
-4.37 |
| 10 | |" |
+4.06 | 穹 |
-4.35 | ライフ |
+3.77 | pré |
-4.36 |
Top-10 overlap 10% · cos(w, J·w) 0.82 · kurtosis 3.3 (Jacobian) / 3.2 (logit) · 100 prompts
Read more
The output direction is read through the final norm and the unembedding. The Jacobian lens first carries it to the last layer. Bar length is the token's z-score over the vocabulary, and ␣ marks a space. A kurtosis near 3 means no specific set of tokens.
Patchscope
The model's own description of this unit's output, with no examples.
Read more
The unit's direction replaces the residual stream after the named layer, at the ? of each prompt. It is scaled to each multiple of the norm it replaces, and the model continues greedily. The control injects a random direction, so text that both rows share comes from the prompt. Read after the proposer answered, and shown to neither agent. Reported, not gated.
| Prompt | Layer | ×1 | ×2 | ×4 | |
|---|---|---|---|---|---|
| category | 2 | unit | politics | noun | country |
| control | period | emotion | animal | ||
| category | 19 | unit | noun | noun | noun |
| control | noun | noun | noun | ||
| meaning | 2 | unit | that the number of words in the sentence is equal to the | to ____. | ____. |
| 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 | 19 | unit | "a question mark" in the sentence "The question mark | "not specified" or "unknown". It is used to | "not specified" or "unknown". It is used to |
| control | "a question mark" in the sentence "The question mark | "a question mark" in the sentence "The question mark | "a question mark" in English. The question mark is |
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 (6.31), 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. I'm going to the park. I'm going to
very cold. It is ________ than last night. A. colder B. colder's C. colder's
very cold. (对划线部分提问) What's the weather like today? 根据题干,可知要求:
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 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 books. I bought 10 books. I bought 100 books. I bought 1
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 do it. This is the philosophy of the University of the Arts, London (UAL), which is the only art
to do it. This is the philosophy of the University of the Arts, London (UAL), which is the only university
to use it. This is the philosophy of the world's most successful and successful companies. They are the ones that have
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 young girl named Lily. She loved to read and write. One day, she decided to write a story
there was a young man named Jack. He loved to travel and explore new places. One day, he decided to travel
there was a young man named Jack. He loved to travel and explore the world. One day, he decided to travel
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 had increased by 11.5 million
the 2010 census showed that the number of people living in the United States had increased by 11
the 2018-2019 fiscal year was the first year in which the state's fiscal year
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 8 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
| L13/N531 | up | -0.122 |
| L13/N609 | gate | +0.104 |
| L9/N2962 | gate | -0.102 |
| L16/N888 | gate | +0.0989 |
| L11/N3692 | gate | -0.0961 |
| L18/N576 | gate | -0.0877 |
| L2/N2822 | gate | +0.0871 |
| L8/N4660 | gate | -0.0867 |
| L12/N4094 | up | -0.0865 |
| L15/N2315 | gate | +0.085 |
Upstream heads
| L10/H4 | gate | +0.285 |
| L18/H9 | up | +0.28 |
| L12/H4 | up | +0.276 |
| L18/H2 | gate | +0.263 |
| L10/H7 | gate | +0.259 |
| L12/H1 | gate | +0.257 |
| L18/H5 | gate | +0.251 |
| L13/H7 | up | +0.247 |
| L10/H13 | gate | +0.246 |
| L9/H2 | gate | +0.245 |
Downstream neurons
| L21/N567 | up | +0.495 |
| L23/N1451 | gate | -0.142 |
| L23/N2416 | gate | -0.139 |
| L23/N4385 | gate | -0.128 |
| L23/N1943 | gate | -0.124 |
| L21/N2884 | gate | -0.124 |
| L21/N2276 | gate | +0.12 |
| L23/N976 | up | -0.12 |
| L20/N3239 | up | +0.116 |
| L23/N4521 | gate | +0.115 |
Downstream heads
| L21/H7 | v | +0.341 |
| L21/H8 | v | +0.341 |
| L21/H9 | v | +0.341 |
| L21/H10 | v | +0.341 |
| L21/H11 | v | +0.341 |
| L21/H12 | v | +0.341 |
| L21/H13 | v | +0.341 |
| L22/H0 | v | +0.303 |
| L22/H1 | v | +0.303 |
| L22/H2 | v | +0.303 |
From activations
Upstream neurons
| L17/N2883 | -0.435 | |
| L18/N1228 | +0.4 | |
| L15/N3348 | +0.381 | |
| L18/N1413 | +0.3 | |
| L16/N2788 | +0.289 | |
| L14/N1920 | +0.242 | |
| L15/N3679 | +0.236 | |
| L16/N407 | -0.221 | |
| L6/N2316 | -0.218 | |
| L17/N2462 | +0.215 |
Upstream heads
| L8/H7 | +0.285 | |
| L10/H6 | +0.234 | |
| L8/H3 | -0.207 | |
| L13/H3 | -0.198 | |
| L11/H2 | +0.195 | |
| L14/H12 | +0.174 | |
| L14/H11 | -0.171 | |
| L14/H1 | +0.167 | |
| L12/H12 | +0.166 | |
| L2/H9 | +0.162 |
Downstream neurons
| L23/N1121 | +0.987 | |
| L23/N4861 | +0.799 | |
| L23/N3935 | +0.584 | |
| L22/N1439 | +0.579 | |
| L23/N4749 | -0.472 | |
| L23/N2788 | -0.464 | |
| L23/N2228 | +0.462 | |
| L23/N1863 | -0.436 | |
| L20/N3239 | +0.434 | |
| L23/N1341 | -0.432 |
Downstream heads
| L23/H1 | v | +0.182 |
| L22/H0 | q | +0.15 |
| L23/H4 | v | +0.121 |
| L21/H9 | v | +0.097 |
| L20/H9 | q | +0.0835 |
| L20/H2 | q | +0.0693 |
| L22/H4 | q | +0.0654 |
| L22/H6 | q | +0.0618 |
| L20/H6 | q | +0.058 |
| L20/H7 | q | +0.0465 |
Covariance and confounds
Confounds
- Token identity R²
- 0.32
- Position R²
- 0.01
- Frequency r
- 0.07
- Best trivial baseline
- never active · 0.78
- Hypothesis
- 0.62 ✗
�/LICENSE https� http cardiac bring crude lieu:// refreshhttp
Co-activating neuron poles
| Pole | Lift ≥ | Both | ρ | r |
|---|---|---|---|---|
| N1827+ | 21.4 | 23 | -0.05 | -0.01 |
| N1766− | 20.3 | 22 | -0.05 | +0.03 |
| N2375− | 19.1 | 21 | +0.06 | -0.03 |
| N2747− | 19.1 | 7 | -0.01 | -0.01 |
| N2808+ | 18.0 | 20 | -0.05 | -0.02 |
| N4746− | 18.0 | 20 | -0.01 | -0.01 |
| N1028− | 16.9 | 19 | +0.04 | -0.03 |
| N1409+ | 16.9 | 19 | +0.03 | +0.00 |
| N1018− | 16.9 | 19 | +0.01 | -0.01 |
| N1825+ | 16.3 | 3 | -0.00 | +0.05 |
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
- N1827, N1766, N2375
- KL pole alone
- 1.36e-05
- KL partners
- 4.94e-04
- KL together
- 5.12e-04
- Redundancy ratio
- 1.30
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-24 15:30 UTC
- Max activation
- 6.3104
- Selection
- random (seed 3095172179)
- Corpus
- corpus.jsonl · 199,896 tokens · seeded sample of 477/500 docs (≤ 200,000 tokens, seed 0) · source NeelNanda/pile-10k@127bfedc (data/*.parquet, first 500 docs) (inferred) · licence bigscience-bloom-rail-1.0
- Model revision
- 060db6499f32 · float32
- Ran on
- scan mps:0 · review mps:0
- Run cost
- 33.3 min (slowest: proposer, 18.7 min) · 4 LLM calls