Qwen/Qwen2.5-0.5B · L13/N3774 · 20261022T023220Z
Experiment 3 of 3 on this neuron, most conclusive first · record
The negative pole fires on the word-pieces of program identifiers (class, type, function, variable and package names) inside source code, peaking on the identifier's leading piece - ' Weather' in WeatherTodayModel, ' V'/'pn'/'Sites' in VpnSitesClient, ' aut' in autorest, ' graphics' in 'var graphics' - and staying elevated across the rest of the name, equally for declared and referenced names. It is near zero on language keywords, punctuation, operators, numbers and string text, and falls to roughly a tenth of peak when the very same words appear in ordinary prose (a code comment is intermediate); strength does vary between names (' Module', 'Sites', 'Sampling', 'Multi' fire several times harder than 'Client', 'Model', 'Foo'), which is the residual token-identity confound.
The whole hypothesis
The negative pole fires on the word-pieces of program identifiers (class, type, function, variable and package names) inside source code, peaking on the identifier's leading piece - ' Weather' in WeatherTodayModel, ' V'/'pn'/'Sites' in VpnSitesClient, ' aut' in autorest, ' graphics' in 'var graphics' - and staying elevated across the rest of the name, equally for declared and referenced names. It is near zero on language keywords, punctuation, operators, numbers and string text, and falls to roughly a tenth of peak when the very same words appear in ordinary prose (a code comment is intermediate); strength does vary between names (' Module', 'Sites', 'Sampling', 'Multi' fire several times harder than 'Client', 'Model', 'Foo'), which is the residual token-identity confound.
Hard negatives 10/10 rejected · holdouts 5/6 fired (independent observations; 16 probes) · P(useful) 0.99
specificity 1.00 · sensitivity 0.83 · counterfactual reproduction 1.00 · protocol v0.7
ModuleSites WeatherSamplingMultiVelocitySessionautgraphicsConfirm
Adversarial review
hard_negative: 10/10 passed; positive_holdout: 5/6 passed; counterfactual: 7/7 passed; lookahead_consistency: 1/1 passed. All gates passed.
All 24 probes
| Test | Input | Expected | Observed | |
|---|---|---|---|---|
| ✓ | hard negative | for (;;) {
if (!true || false) {
continue;
} else {
break;
}
} Code made only of language keywords, operators and punctuation with no identifiers, which the hypothesis says is near zero. |
inactive | 0.060 |
| ✓ | hard negative | {
"title": "Weather Module Session",
"features": ["Multi Sampling", "Velocity Confirm", "aut graphics"],
"notes": "Sites and Modules are configured elsewhere"
} The claimed trigger words occur only as JSON keys and string values, which the hypothesis explicitly calls string text and predicts near zero. |
inactive | 0.238 |
| ✓ | hard negative | Weather
Tomorrow's weather will turn unsettled as a cold front pushes in from the west. The Weather Service expects gusts of up to sixty kilometres per hour along the coast, and drivers should allow extra time. By evening the weather should clear, with bright spells returning on Thursday. The token 'Weather' appears sentence-initially and repeatedly in an ordinary forecast, the same word in another sense, which the hypothesis says falls to about a tenth of peak in prose. |
inactive | 0.209 |
| ✓ | hard negative | Module handbook
This module introduces the principles of statistical sampling. Each weekly session combines a lecture with a computer lab, and the final session is devoted to revision. Students taking the module alongside another multi-disciplinary course should confirm their timetable with the department office before the second week. 'Module', 'session', 'sampling', 'multi' and 'confirm' occur only as English course vocabulary in prose, so the hypothesis predicts prose-level activation. |
inactive | 0.385 |
| ✓ | hard negative | The velocity of the probe was measured at twelve metres per second. Sampling the position every ten milliseconds let the team compute acceleration, and they confirmed the result against a second sensor. A velocity this high is unusual for a device of that size, so the session was extended to repeat the calibration. Physics prose uses 'velocity', 'Sampling', 'confirmed' and 'session' in non-programming senses with no identifiers, which the hypothesis predicts should be near zero. |
inactive | 0.119 |
| ✓ | hard negative | Confirm your appointment
Please confirm that you can attend the session on Friday at 3 p.m. The session will last about an hour, and you can confirm or reschedule at any time using the link below. We look forward to seeing you. Capitalised 'Confirm' appears at the start of an appointment reminder and 'session' twice in ordinary English, testing the claimed trigger tokens in the wrong context. |
inactive | 0.056 |
| ✓ | hard negative | A virtual private network connects offices and remote workers over the public internet as if they shared a private cable. Each site runs a gateway that encrypts traffic before it leaves the building, and a controller distributes keys to every site in the mesh. When an employee opens the client on a laptop, the client negotiates a session with the nearest gateway. The gateway authenticates the user, assigns an address from the pool, and records the session in a local log.
Administrators usually split the deployment into modules. One module handles authentication, another handles routing, and a third collects telemetry. A module can be enabled or disabled without restarting the gateways, which matters when a team is rolling out changes across many sites at once. Large organisations often run several independent networks side by side, and the controller must confirm that a session belongs to the right network before it forwards a single packet.
Latency is the usual complaint. Traffic from a branch site may cross two gateways before it reaches the data centre, and every hop adds a few milliseconds. Engineers therefore sample round-trip times every minute and plot them on a dashboard. If a site's median latency drifts above the agreed threshold, the on-call engineer is paged and asked to confirm whether the cause is local congestion or an upstream provider.
Security reviews focus on key rotation and on what happens when a device is lost. The controller can revoke a client certificate, which ends the session immediately even if the laptop is still online. Auditors also ask for evidence that every module writes its events to a central store, because a session that leaves no trace cannot be investigated after an incident.
Multi-factor login is mandatory for staff, and contractors must confirm their identity through a hardware token. The help desk keeps a short checklist: verify the caller, check the device inventory, and confirm the ticket number before resetting anything. None of this is glamorous, but it is what keeps a network of several hundred sites running through the year.
Capacity planning is a separate exercise. The team samples traffic profiles at the start of each quarter, compares them with forecasts from finance, and orders new gateways when a site is expected to exceed seventy percent utilisation. A module that reports utilisation hourly makes this mostly routine, and the network operations manager can confirm the order in a single meeting. The goal is a network that nobody has to think about, which is harder to build than it sounds. A roughly 550-token networking essay repeating 'site', 'client', 'module', 'session' and 'confirm' in prose with no code, testing the long-context and prose-falloff claims. |
inactive | 0.305 |
| ✓ | hard negative | ((1.5 * -2.25) + 0.0 - 1e-9 / 42 % 7 <= 3.14159) && (2.71828 != 0.5) || (0xFF >> 4 == 15) A source-code expression containing only numbers, operators and punctuation, which the hypothesis says should be near zero. |
inactive | 0.407 |
| ✓ | hard negative | Introducing WeatherTodayModel
We are excited to announce WeatherTodayModel, the successor to our Multichannel Sampling suite. WeatherTodayModel lets teams confirm a Session in one click, and the Velocity dashboard shows how quickly each request completes. Existing customers of VpnSitesClient can migrate automatically; simply confirm the migration in the admin console and the old Session data is carried over. The graphics pipeline has also been rebuilt, so previews render twice as fast. Identifier-shaped CamelCase product names from the examples appear only in marketing prose rather than source code, which the hypothesis says should drop to prose level. |
inactive | 0.309 |
| ✓ | hard negative | Q:
What is the difference between a class and a function?
I am learning to program and keep getting confused about the terminology. My teacher says a class describes the shape of the data while a function describes a piece of behaviour, but the variable names in the examples look the same to me. Is there a rule of thumb for deciding when to write one rather than the other, and does it matter whether the language is statically typed? Any simple explanation would help. A Stack Overflow-style question that discusses classes, functions and variables in plain English with no code, testing whether metalinguistic programming vocabulary alone fires the identifier pole. |
inactive | 0.233 |
| ✓ | positive holdout | import os
from collections import defaultdict
def reconcile_invoice_totals(ledger_entries, exchange_rates):
outstanding = defaultdict(float)
for entry in ledger_entries:
outstanding[entry.account] += entry.amount * exchange_rates[entry.currency]
return outstanding Python function and variable identifiers in snake_case, a naming style absent from the examples, which the hypothesis predicts should fire on their leading word-pieces. |
active | 0.727 |
| ✓ | positive holdout | const paymentRetryQueue: Map<string, number> = new Map();
export function scheduleRetry(orderId: string, attempt: number): void {
if (attempt > MAX_ATTEMPTS) {
paymentRetryQueue.delete(orderId);
return;
}
paymentRetryQueue.set(orderId, Date.now() + backoffDelay(attempt));
} TypeScript camelCase identifiers such as paymentRetryQueue and backoffDelay, both declared and referenced, which the hypothesis says fire equally. |
active | 0.989 |
| ✓ | positive holdout | #[derive(Debug, Clone)]
pub struct PacketDecoder {
frame_buffer: Vec<u8>,
expected_sequence: u32,
}
impl PacketDecoder {
pub fn decode_frame(&mut self, payload: &[u8]) -> Option<FrameHeader> {
let header = FrameHeader::parse(payload)?;
self.expected_sequence = header.sequence + 1;
Some(header)
}
} Rust type names, struct fields and method names in a language absent from the examples, which the hypothesis predicts should activate across each identifier. |
active | 1.089 |
| ✓ | positive holdout | CREATE TABLE shipment_manifest (
manifest_id BIGINT PRIMARY KEY,
carrier_code VARCHAR(16) NOT NULL,
departure_warehouse TEXT,
scheduled_pickup TIMESTAMP
);
SELECT manifest_id, carrier_code
FROM shipment_manifest
WHERE scheduled_pickup > CURRENT_DATE; SQL table and column names declared and referenced in a data-definition language from a different genre than the scan corpus, testing the hypothesis that named variables and types in source code fire. |
active | 0.716 |
| ✓ | positive holdout | .nav-drawer {
position: fixed;
width: 320px;
}
.checkout-banner .promo-code {
background: #ffcc00;
font-weight: 600;
} Stylesheet class-name selectors such as .nav-drawer and .checkout-banner are class names in source code, hyphenated rather than CamelCase, which the hypothesis predicts fire on their leading word-pieces. |
active | 0.638 |
| ✗ | positive holdout | # Billing pipeline
Our billing service ingests events from the product, prices them, and writes a monthly invoice for every account. This document explains how the pieces fit together so that new engineers can make changes without breaking the settlement run.
Events arrive on a queue. Each event carries an account identifier, a timestamp and a payload describing what the customer did. The ingest worker validates the envelope, rejects anything older than thirty days, and writes the raw record to object storage before it touches the database. Keeping the raw copy means we can replay a day of traffic after a bug is fixed.
Pricing happens in a separate worker. It loads the price book for the account's region, applies any active promotions, and emits a charge. The price book is versioned, so a charge can always be traced back to the exact rules that produced it. Promotions are the most common source of support tickets, which is why every applied discount is stored alongside the charge rather than recomputed later.
Settlement runs nightly. It groups pending charges by account, subtracts credits, and creates an invoice. The run is idempotent: if the process dies halfway through, it resumes from the last committed batch and does not double-bill anyone. Before the invoice is finalised, a validation step checks that the total matches the sum of the charges and that no account has two invoices for the same period.
Operators watch three dashboards. The first shows queue depth, the second shows settlement duration, and the third shows the number of invoices waiting for review. When an alert fires, the on-call engineer checks the run log, confirms which batch failed, and decides whether to retry or escalate. Most incidents are resolved by a retry.
The code that performs the final step is small enough to read in one sitting:
```go
func SettlePendingCharges(batch PendingBatch) error {
invoice := NewInvoice(batch.AccountID)
for _, charge := range batch.Charges {
if err := invoice.ApplyCharge(charge); err != nil {
return err
}
}
return invoiceStore.Save(invoice)
}
```
Questions about the pipeline should go to the billing team channel. A long README whose identifiers such as SettlePendingCharges and invoiceStore appear only in a code block near the end after hundreds of tokens of prose, testing position independence. |
active | 0.261 |
| ✓ | counterfactual | public class WeatherTodayModel extends BaseModel { -> The weather today model is used in a base model. | Δ 0.81 | Δ 0.81 |
| ✓ | counterfactual | type VpnSitesClient struct { -> A vpn sites client is a struct for a base. | Δ 0.67 | Δ 0.66 |
| ✓ | counterfactual | public class WeatherModel extends BaseModel { -> // WeatherModel is used below. | Δ 0.46 | Δ 0.46 |
| ✓ | counterfactual | public class WeatherTodayModel extends BaseModel { -> public class WeatherModel extends BaseModel { | Δ 0.00 | Δ 0.00 |
| ✓ | counterfactual | func autoDetectVcsMappings(tryMapPieces bool) { -> err = autoDetectVcsMappings(tryMapPieces, false) | Δ -0.03 | Δ -0.03 |
| ✓ | counterfactual | if (x == null) { return; } -> if (y == null) { return; } | Δ 0.02 | Δ 0.02 |
| ✓ | counterfactual | The team met on Tuesday to discuss the roadmap. -> The team met on Monday to discuss the roadmap. | Δ 0.00 | Δ 0.00 |
| ✓ | lookahead consistency | public class WeatherTodayModel extends BaseModel {; type VpnSitesClient struct {; public class WeatherModel extends BaseModel {; public class WeatherTodayModel extends BaseModel {; func autoDetectVcsMappings(tryMapPieces bool) {; if (x == null) { return; }; The team met on Tuesday to discuss the roadmap. claimed retrospective; measured retrospective (KL=0.0003524, tokens=[' {\n', ' extends', ' implements', ' Weather', ' BaseModel']) |
Minimal pairs
| # | Base → counterfactual | Expected Δ | Observed Δ | Sufficiency | Necessity |
|---|---|---|---|---|---|
| 1 | public class WeatherTodayModel extends BaseModel { → The weather today model is used in a base model. |
0.81 | 0.81 | — | — |
| 2 | type VpnSitesClient struct { → A vpn sites client is a struct for a base. |
0.67 | 0.66 | — | — |
| 3 | public class WeatherModel extends BaseModel { → // WeatherModel is used below. |
0.46 | 0.46 | 0.69 effect 0.000214 matched 0.000117 / 0.00128 |
0.75 effect 0.000372 matched 0.000133 / 0.00246 |
| 4 | public class WeatherTodayModel extends BaseModel { → public class WeatherModel extends BaseModel { |
0.00 | 0.00 | — | — |
| 5 | func autoDetectVcsMappings(tryMapPieces bool) { → err = autoDetectVcsMappings(tryMapPieces, false) |
-0.03 | -0.03 | — | — |
| 6 | if (x == null) { return; } → if (y == null) { return; } |
0.02 | 0.02 | — | — |
| 7 | The team met on Tuesday to discuss the roadmap. → The team met on Monday to discuss the roadmap. |
0.00 | 0.00 | — | — |
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 0.000214 (sufficiency) and 0.000372 (necessity). In the table, each cell gives the percentile, the pole's signed effect, and the matched neurons' median and largest |effect|, in nats of KL. Self-repair (the hydra effect) was mitigated by freezing downstream MLP outputs.
Top-activating examples
Hover a token for its value.
-
1.85
… .vcs.ProjectLevelVcsManager↵import com.intellij.openapi.vcs.VcsDirectoryMapping↵import com.intellij.openapi.vfs.VirtualFile↵↵internal class ModuleVcsDetector(private val project: Project) {↵ …
All 627 tokens
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.↵package com.intellij.openapi.vcs.impl↵↵import com.intellij.ProjectTopics↵import com.intellij.openapi.application.ApplicationManager↵import com.intellij.openapi.components.service↵import com.intellij.openapi.extensions.ExtensionNotApplicableException↵import com.intellij.openapi.module.Module↵import com.intellij.openapi.module.ModuleManager↵import com.intellij.openapi.project.ModuleListener↵import com.intellij.openapi.project.Project↵import com.intellij.openapi.project.rootManager↵import com.intellij.openapi.roots.ModuleRootEvent↵import com.intellij.openapi.roots.ModuleRootListener↵import com.intellij.openapi.startup.StartupActivity↵import com.intellij.openapi.vcs.AbstractVcs↵import com.intellij.openapi.vcs.ProjectLevelVcsManager↵import com.intellij.openapi.vcs.VcsDirectoryMapping↵import com.intellij.openapi.vfs.VirtualFile↵↵internal class ModuleVcsDetector(private val project: Project) {↵ private val vcsManager by lazy(LazyThreadSafetyMode.NONE) {↵ (ProjectLevelVcsManager.getInstance(project) as ProjectLevelVcsManagerImpl)↵ }↵↵ internal class MyPostStartUpActivity : StartupActivity.DumbAware {↵ init {↵ if (ApplicationManager.getApplication().isUnitTestMode) {↵ throw ExtensionNotApplicableException.INSTANCE↵ }↵ }↵↵ override fun runActivity(project: Project) {↵ val vcsDetector = project.service<ModuleVcsDetector>()↵↵ val listener = vcsDetector.MyModulesListener()↵ val busConnection = project.messageBus.connect()↵ busConnection.subscribe(ProjectTopics.MODULES, listener)↵ busConnection.subscribe(ProjectTopics.PROJECT_ROOTS, listener)↵↵ if (vcsDetector.vcsManager.needAutodetectMappings()) {↵ vcsDetector.autoDetectVcsMappings(true)↵ }↵ }↵ }↵↵ private inner class MyModulesListener : ModuleRootListener, ModuleListener {↵ private val myMappingsForRemovedModules: MutableList<VcsDirectoryMapping> = mutableListOf()↵↵ override fun beforeRootsChange(event: ModuleRootEvent) {↵ myMappingsForRemovedModules.clear()↵ }↵↵ override fun rootsChanged(event: ModuleRootEvent) {↵ myMappingsForRemovedModules.forEach { mapping -> vcsManager.removeDirectoryMapping(mapping) }↵ // the check calculates to true only before user has done any change to mappings, i.e. in case modules are detected/added automatically↵ // on start etc (look inside)↵ if (vcsManager.needAutodetectMappings()) {↵ autoDetectVcsMappings(false)↵ }↵ }↵↵ override fun moduleAdded(project: Project, module: Module) {↵ myMappingsForRemovedModules.removeAll(getMappings(module))↵ autoDetectModuleVcsMapping(module)↵ }↵↵ override fun beforeModuleRemoved(project: Project, module: Module) {↵ myMappingsForRemovedModules.addAll(getMappings(module))↵ }↵ }↵↵ private fun autoDetectVcsMappings(tryMapPieces: Boolean) {↵ if (vcsM
Values
Token Negative-pole strength .v0.078 cs0.000 .Project0.105 Level0.403 V0.439 cs0.269 Manager0.129 ↵0.000 import0.000 com0.016 .intellij0.051 .openapi0.000 .v0.105 cs0.000 .V0.217 cs0.416 Directory0.298 Mapping0.358 ↵0.000 import0.000 com0.031 .intellij0.065 .openapi0.000 .v0.111 fs0.000 .Virtual0.225 File0.070 ↵↵0.000 internal0.140 class0.214 Module1.851 V1.268 cs0.947 Detector0.382 (private0.000 val0.000 project0.000 :0.028 Project0.094 )0.000 {↵0.000 -
1.76
… "↵ "github.com/Azure/go-autorest/tracing"↵ "net/http"↵)↵↵// VpnSitesClient is the network Client↵type VpnSitesClient struct {↵ BaseClient↵}↵↵// NewV …
All 703 tokens
package network↵↵// Copyright (c) Microsoft and contributors. All rights reserved.↵//↵// Licensed under the Apache License, Version 2.0 (the "License");↵// you may not use this file except in compliance with the License.↵// 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.↵//↵// Code generated by Microsoft (R) AutoRest Code Generator.↵// Changes may cause incorrect behavior and will be lost if the code is regenerated.↵↵import (↵ "context"↵ "github.com/Azure/go-autorest/autorest"↵ "github.com/Azure/go-autorest/autorest/azure"↵ "github.com/Azure/go-autorest/tracing"↵ "net/http"↵)↵↵// VpnSitesClient is the network Client↵type VpnSitesClient struct {↵ BaseClient↵}↵↵// NewVpnSitesClient creates an instance of the VpnSitesClient client.↵func NewVpnSitesClient(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.279 0.000 "github0.080 .com0.007 /A0.305 zure0.158 /go0.098 -aut0.667 orest0.212 /tr0.096 acing0.263 "↵0.051 0.000 "net0.100 /http0.276 "↵0.030 )↵↵0.009 //0.175 V0.533 pn0.483 Sites0.494 Client0.334 is0.066 the0.116 network0.160 Client0.088 ↵0.266 type0.016 V1.588 pn1.299 Sites1.756 Client0.882 struct0.278 {↵0.000 Base0.000 Client0.437 ↵0.000 }↵↵0.012 //0.019 New0.000 V0.000 -
1.58
… `DBSerializable` protocol (serialize and↵/// deserialize instance methods), which is required for all Obj-C SDK API route↵/// objects.↵///↵@interface DBTEAMPOLICIESSharedFolderJoin …
All 684 tokens
///↵/// Copyright (c) 2016 Dropbox, Inc. All rights reserved.↵///↵/// Auto-generated by Stone, do not modify.↵///↵↵#import <Foundation/Foundation.h>↵↵#import "DBSerializableProtocol.h"↵↵@class DBTEAMPOLICIESSharedFolderJoinPolicy;↵↵NS_ASSUME_NONNULL_BEGIN↵↵#pragma mark - API Object↵↵///↵/// The `SharedFolderJoinPolicy` union.↵///↵/// Policy governing which shared folders a team member can join.↵///↵/// This class implements the `DBSerializable` protocol (serialize and↵/// deserialize instance methods), which is required for all Obj-C SDK API route↵/// objects.↵///↵@interface DBTEAMPOLICIESSharedFolderJoinPolicy : NSObject <DBSerializable, NSCopying>↵↵#pragma mark - Instance fields↵↵/// The `DBTEAMPOLICIESSharedFolderJoinPolicyTag` enum type represents the↵/// possible tag states with which the `DBTEAMPOLICIESSharedFolderJoinPolicy`↵/// union can exist.↵typedef NS_CLOSED_ENUM(NSInteger, DBTEAMPOLICIESSharedFolderJoinPolicyTag){↵ /// Team members can only join folders shared by teammates.↵ DBTEAMPOLICIESSharedFolderJoinPolicyFromTeamOnly,↵↵ /// Team members can join any shared folder, including those shared by users↵ /// outside the team.↵ DBTEAMPOLICIESSharedFolderJoinPolicyFromAnyone,↵↵ /// (no description).↵ DBTEAMPOLICIESSharedFolderJoinPolicyOther,↵↵};↵↵/// Represents the union's current tag state.↵@property (nonatomic, readonly) DBTEAMPOLICIESSharedFolderJoinPolicyTag tag;↵↵#pragma mark - Constructors↵↵///↵/// Initializes union class with tag state of "from_team_only".↵///↵/// Description of the "from_team_only" tag state: Team members can only join↵/// folders shared by teammates.↵///↵/// @return An initialized instance.↵///↵- (instancetype)initWithFromTeamOnly;↵↵///↵/// Initializes union class with tag state of "from_anyone".↵///↵/// Description of the "from_anyone" tag state: Team members can join any shared↵/// folder, including those shared by users outside the team.↵///↵/// @return An initialized instance.↵///↵- (instancetype)initWithFromAnyone;↵↵///↵/// Initializes union class with tag state of "other".↵///↵/// @return An initialized instance.↵///↵- (instancetype)initWithOther;↵↵- (instancetype)init NS_UNAVAILABLE;↵↵#pragma mark - Tag state methods↵↵///↵/// Retrieves whether the union's current tag state has value "from_team_only".↵///↵/// @return Whether the union's current tag state has value "from_team_only".↵///↵- (BOOL)isFromTeamOnly;↵↵///↵/// Retrieves whether the union's current tag state has value "from_anyone".↵///↵/// @return Whether the union's current tag state has value "from_anyone".↵///↵- (BOOL)isFromAnyone;↵↵///↵/// Retrieves whether the union's current tag state has value "other".↵///↵/// @return Whether the union's current tag state has value "other".↵///↵- (BOOL)isOther;↵↵///↵/// Retrieves string value of union's current tag state.↵///↵/// @return A human-readable string representing the union's current tag state.↵///↵- (NSString *)tagName;↵↵@end↵↵#pragma mark - Serializer Object↵↵///↵/// The ser
Values
Token Negative-pole strength `0.000 DB0.526 Serializable0.000 `0.003 protocol0.000 (0.000 serialize0.000 and0.007 ↵0.039 ///0.029 deserialize0.000 instance0.000 methods0.057 ),0.039 which0.000 is0.092 required0.063 for0.137 all0.002 Obj0.011 -C0.007 SDK0.017 API0.018 route0.000 ↵0.001 ///0.016 objects0.000 .↵0.000 ///↵0.000 @interface0.000 DB1.583 TE0.588 AMP0.443 OL0.293 IC0.269 IE0.208 SS0.410 h0.108 ared0.925 Folder0.794 Join1.124 -
1.55
… PROCESSED_HEADERS) \↵ && !defined(BOOST_MPL_PREPROCESSING_MODE)↵↵# define BOOST_MPL_PREPROCESSED_HEADER advance_backward.hpp↵# include <boost/mpl …
All 794 tokens
↵#if !defined(BOOST_PP_IS_ITERATING)↵↵///// header body↵↵#ifndef BOOST_MPL_AUX778076_ADVANCE_BACKWARD_HPP_INCLUDED↵#define BOOST_MPL_AUX778076_ADVANCE_BACKWARD_HPP_INCLUDED↵↵// Copyright Aleksey Gurtovoy 2000-2004↵//↵// Distributed under the Boost Software License, Version 1.0. ↵// (See accompanying file LICENSE_1_0.txt or copy at ↵// http://www.boost.org/LICENSE_1_0.txt)↵//↵// See http://www.boost.org/libs/mpl for documentation.↵↵// $Id$↵// $Date$↵// $Revision$↵↵#if !defined(BOOST_MPL_PREPROCESSING_MODE)↵# include <boost/mpl/prior.hpp>↵# include <boost/mpl/apply_wrap.hpp>↵#endif↵↵#include <boost/mpl/aux_/config/use_preprocessed.hpp>↵↵#if !defined(BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS) \↵ && !defined(BOOST_MPL_PREPROCESSING_MODE)↵↵# define BOOST_MPL_PREPROCESSED_HEADER advance_backward.hpp↵# include <boost/mpl/aux_/include_preprocessed.hpp>↵↵#else↵↵# include <boost/mpl/limits/unrolling.hpp>↵# include <boost/mpl/aux_/nttp_decl.hpp>↵# include <boost/mpl/aux_/config/eti.hpp>↵↵# include <boost/preprocessor/iterate.hpp>↵# include <boost/preprocessor/cat.hpp>↵# include <boost/preprocessor/inc.hpp>↵↵namespace boost { namespace mpl { namespace aux {↵↵// forward declaration↵template< BOOST_MPL_AUX_NTTP_DECL(long, N) > struct advance_backward;↵↵# define BOOST_PP_ITERATION_PARAMS_1 \↵ (3,(0, BOOST_MPL_LIMIT_UNROLLING, <boost/mpl/aux_/advance_backward.hpp>))↵# include BOOST_PP_ITERATE()↵↵// implementation for N that exceeds BOOST_MPL_LIMIT_UNROLLING↵template< BOOST_MPL_AUX_NTTP_DECL(long, N) >↵struct advance_backward↵{↵ template< typename Iterator > struct apply↵ {↵ typedef typename apply_wrap1<↵ advance_backward<BOOST_MPL_LIMIT_UNROLLING>↵ , Iterator↵ >::type chunk_result_;↵↵ typedef typename apply_wrap1<↵ advance_backward<(↵ (N - BOOST_MPL_LIMIT_UNROLLING) < 0↵ ? 0↵ : N - BOOST_MPL_LIMIT_UNROLLING↵ )>↵ , chunk_result_↵ >::type type;↵ };↵};↵↵}}}↵↵#endif // BOOST_MPL_CFG_NO_PREPROCESSED_HEADERS↵#endif // BOOST_MPL_AUX778076_ADVANCE_BACKWARD_HPP_INCLUDED↵↵///// iteration, depth == 1↵↵// For gcc 4.4 compatability, we must include the↵// BOOST_PP_ITERATION_DEPTH test inside an #else clause.↵#else // BOOST_PP_IS_ITERATING↵#if BOOST_PP_ITERATION_DEPTH() == 1↵#define i_ BOOST_PP_FRAME_ITERATION(1)↵↵template<>↵struct advance_backward< BOOST_PP_FRAME_ITERATION(1) >↵{↵ template< typename Iterator > struct apply↵ {↵ typedef Iterator iter0;↵↵#if i_ > 0↵# define BOOST_PP_ITERATION_PARAMS_2 \↵ (3,(1, BOOST_PP_FRAME_ITERATION(1), <boost/mpl/aux_/advance_backward.hpp>))↵# include BOOST_PP_ITERATE()↵#endif↵↵ typedef BOOST_PP_CAT(iter,BOOST_PP_FRAME_ITERATION(1)) type;↵ };↵↵#if defined(BOOST_MPL_CFG_MSVC_60_ETI_BUG)↵ /// ETI workaround↵ template<> struct apply<int>↵ {↵ typedef int type;↵ };↵#endif↵};↵↵#undef i_↵↵///// iteration, dep
Values
Token Negative-pole strength PRO0.004 CES0.001 SED0.031 _HEADERS0.108 )0.000 \↵0.000 0.054 &&0.101 !0.004 defined0.016 (0.018 BOOST0.076 _M0.003 PL0.076 _PRE0.099 PROCESS0.128 ING0.212 _MODE0.042 )↵↵0.000 #0.000 0.000 define0.189 BOOST1.429 _M0.439 PL1.070 _PRE0.980 PRO0.269 CES0.199 SED0.604 _HEADER1.191 advance1.553 _backward0.665 .hpp0.200 ↵0.000 #0.008 0.023 include0.000 <0.000 boost0.000 /m0.000 pl0.023 -
1.48
… oppo.sunday.dao.WeatherTodayDataHelper;↵↵/**↵ * Created by Ho on 2014/7/4.↵ */↵public class WeatherTodayModel extends BaseModel {↵↵ private static final HashMap …
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 Negative-pole strength opp0.133 o0.019 .s0.169 unday0.217 .dao0.000 .We0.182 ather0.280 Today0.304 Data0.296 Helper0.168 ;↵↵0.000 /**↵0.000 *0.037 Created0.000 by0.000 Ho0.000 on0.024 0.001 20.000 00.000 10.000 40.000 /0.000 70.000 /0.000 40.000 .↵0.000 */↵0.000 public0.332 class0.472 Weather1.482 Today0.872 Model0.653 extends0.221 BaseModel0.000 {↵↵0.000 0.031 private0.030 static0.000 final0.018 HashMap0.222 -
1.43
… __)↵#pragma clang diagnostic push↵#pragma clang diagnostic ignored "-Wparentheses-equality"↵#endif↵↵/***********************************************************************↵Reflection↵***********************************************************************/↵↵namespace vl↵{↵ namespace reflection↵ {↵ namespace description↵ {↵ …
All 253 tokens
/***********************************************************************↵!!!!!! DO NOT MODIFY !!!!!!↵↵GacGen.exe Resource.xml↵↵This file is generated by Workflow compiler↵https://github.com/vczh-libraries↵***********************************************************************/↵↵#ifndef VCZH_WORKFLOW_COMPILER_GENERATED_DEMOREFLECTION↵#define VCZH_WORKFLOW_COMPILER_GENERATED_DEMOREFLECTION↵↵#include "Demo.h"↵#ifndef VCZH_DEBUG_NO_REFLECTION↵#include "GacUIReflection.h"↵#endif↵↵#if defined( _MSC_VER)↵#pragma warning(push)↵#pragma warning(disable:4250)↵#elif defined(__GNUC__)↵#pragma GCC diagnostic push↵#pragma GCC diagnostic ignored "-Wparentheses-equality"↵#elif defined(__clang__)↵#pragma clang diagnostic push↵#pragma clang diagnostic ignored "-Wparentheses-equality"↵#endif↵↵/***********************************************************************↵Reflection↵***********************************************************************/↵↵namespace vl↵{↵ namespace reflection↵ {↵ namespace description↵ {↵#ifndef VCZH_DEBUG_NO_REFLECTION↵ DECL_TYPE_INFO(::demo::MainWindow)↵ DECL_TYPE_INFO(::demo::MainWindowConstructor)↵#endif↵↵ extern bool LoadDemoTypes();↵ }↵ }↵}↵↵#if defined( _MSC_VER)↵#pragma warning(pop)↵#elif defined(__GNUC__)↵#pragma GCC diagnostic pop↵#elif defined(__clang__)↵#pragma clang diagnostic pop↵#endif↵↵#endif↵
Values
Token Negative-pole strength __)↵0.000 #pragma0.000 clang0.083 diagnostic0.155 push0.000 ↵0.000 #pragma0.000 clang0.000 diagnostic0.000 ignored0.000 "-0.000 W0.000 paren0.000 theses0.019 -e0.001 quality0.000 "↵0.000 #endif0.000 ↵↵0.000 /****************************************************************0.000 *******↵0.001 Reflection0.541 ↵0.012 ****************************************************************0.000 *******/↵↵0.000 namespace0.000 vl0.516 ↵0.000 {↵0.000 namespace0.000 reflection1.435 ↵0.000 0.000 {↵0.000 0.000 namespace0.000 description0.647 ↵0.000 0.000 0.000 {↵0.000 -
1.37
… facebook::jni;↵↵namespace facebook {↵namespace react {↵↵/* static */ jni::local_ref<SamplingProfilerJniMethod::jhybriddata>↵SamplingProfilerJniMethod::initHybrid(jni …
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 facebook0.115 ::0.000 jni0.096 ;↵↵0.000 namespace0.170 facebook0.057 {↵0.000 namespace0.054 react0.584 {↵↵0.000 /*0.018 static0.000 */0.000 j0.000 ni0.029 ::0.000 local0.000 _ref0.000 <S0.000 ampling0.521 Profiler0.418 J0.488 ni0.613 Method0.000 ::0.000 j0.236 hy0.445 brid0.452 data0.231 >↵0.000 Sampling1.375 Profiler1.010 J0.749 ni0.652 Method0.527 ::0.226 init0.251 Hy0.462 brid0.515 (j0.000 ni0.000 -
1.34
… get; set; }↵ public double boxWidth { get; set; }↵ }↵}↵↵And my API methods class looks like this:↵public class API_Methods↵{↵ public string recipientName;↵ …
All 712 tokens
Q:↵↵Assign values to dynamic number of sub-classes before serializing to JSON↵↵I am integrating with a courier that requires me to pass box dimensions for each box in my consignment to their API in JSON format. I am able to set individual properties like RecipientName, but am not sure how to pass the box details for the varying number of boxes for each consignment.↵The JSON needs to look like this (example is for a 2 box consignment):↵{↵ "RecipientName": "Joe Bloggs",↵ "Packages" : [{↵ "boxNumber": "1",↵ "boxHeight": 1.55, ↵ "boxLength": 1.55,↵ "boxWidth": 1.55↵ },↵ {↵ "boxNumber": "2",↵ "boxHeight": 2.55, ↵ "boxLength": 2.55,↵ "boxWidth": 2.55↵ }]↵}↵↵I have built 2 classes, one that describes the structure of the JSON, and another that contains the method to serialize the JSON.↵My JSON structure class looks like this (I have used a List because I have read that arrays are a fixed length, and because the number of boxes with vary I cannot use arrays):↵public class API_JSON↵{↵ public class Rootobject↵ {↵ public string RecipientName { get; set; }↵ public List<Package> Packages { get; set; }↵ }↵↵ public class Package↵ {↵ public string boxNumber { get; set; }↵ public double boxHeight { get; set; }↵ public double boxLength { get; set; }↵ public double boxWidth { get; set; }↵ }↵}↵↵And my API methods class looks like this:↵public class API_Methods↵{↵ public string recipientName;↵ public List<string> boxnumber;↵ public List<double> boxHeight;↵ public List<double> boxLength;↵ public List<double> boxWidth;↵↵ public Boolean SubmitConsignment(out string JSONData)↵ {↵ var NewRequestObject = new API_JSON.RootObject↵ {↵ Recipient = recipientName,↵ Packages = new API_JSON.Package↵ {↵ foreach (string item in ContainerNumber)↵ {↵ boxNumber=???,↵ boxHeight=???,↵ boxLength???=,↵ boxWidth=???↵ }↵ }↵ }↵↵ string JSONData = JsonConvert.SerializeObject(NewRequestObject);↵ return true;↵ }↵}↵↵I am then instantiating the object, setting its public variables, then running the method list this:↵API_Methods myObject = new API_Methods();↵myObject.recipientName;↵myObject.boxnumber.Add(1);↵myObject.boxnumber.Add(2);↵myObject.boxHeight.Add(1.55);↵myObject.boxHeight.Add(2.55);↵myObject.boxLength.Add(1.55);↵myObject.boxLength.Add(2.55);↵myObject.boxWidth.Add(1.55);↵myObject.boxWidth.Add(2.55);↵↵bool test = API_Methods.SubmitConsignment(out JSON);↵↵My problem is with the foreach loop - I know the code is incomplete - but I was hoping to iterate through the lists, but even with an empty foreach loop it appears to be the wrong place to put the loop as I start getting syntax errors about an expected "}"↵↵A:↵↵You're actually overcomplica
Values
Token Negative-pole strength get0.003 ;0.000 set0.025 ;0.000 }↵0.000 0.000 public0.000 double0.000 box0.000 Width0.000 {0.000 get0.003 ;0.010 set0.006 ;0.000 }↵0.000 0.000 }↵0.009 }↵↵0.081 And0.004 my0.000 API0.095 methods0.000 class0.000 looks0.000 like0.000 this0.027 :↵0.000 public0.000 class0.066 API1.341 _Method0.208 s0.705 ↵0.000 {↵0.000 0.000 public0.000 string0.000 recipient0.312 Name0.115 ;↵0.000 -
1.34
… )↵↵And then I try to use it in a thread↵def stateTimeThreadStart():↵ database.getTable('CLIENTS')↵↵threads = []↵threads.append(threading.Thread(name='State Updater', target= …
All 292 tokens
Q:↵↵Python Segmentation Fault?↵↵First off, I didnt even know a memory error / segfault was possible in python. Kudos to learning something new!↵I have this database I create↵database = DBManager(dbEndpoint,dbUser,dbPass,dbSchema)↵↵And then I try to use it in a thread↵def stateTimeThreadStart():↵ database.getTable('CLIENTS')↵↵threads = []↵threads.append(threading.Thread(name='State Updater', target=stateTimeThreadStart, args=()))↵threads[0].start()↵↵The output is ↵Segmentation fault: 11↵↵What on earth is going on here? It definetly has something to do with database.getTable('CLIENTS') because when I comment it out the issue does not occur. In addition, I have also tried to pass the database to the thread with no luck. Any ideas?↵Thanks!↵↵A:↵↵Segmentation faults in Python can occur due to database connectors. The drivers used to connect to the database are usually coded in a C base, so in case of RAM overload or perhaps other reasons it throws Segmentation Faults.↵This is further exacerbated by the fact that you are using multithreading. Most database drivers are known to throw Segmentation Faults if multithreading isn't handled very carefully. Most database driver protocols can not handle multiple threads using the same connection at once.↵The rule of thumb is to not share a single connection between threads.↵↵
Values
Token Negative-pole strength )↵↵0.000 And0.056 then0.084 I0.003 try0.000 to0.000 use0.000 it0.000 in0.000 a0.000 thread0.000 ↵0.041 def0.000 state1.117 Time0.483 Thread0.237 Start0.000 ():↵0.000 0.000 database0.641 .getTable0.000 ('0.006 CLIENT0.122 S0.158 ')↵↵0.000 threads0.192 =0.011 []↵0.000 threads0.051 .append0.000 (thread1.337 ing0.946 .Thread0.396 (name0.000 ='0.039 State0.289 Up0.056 dater0.345 ',0.000 target0.000 =0.000 -
1.31
… ""↵ private val rulesVisitor = RuleListVisitor()↵ private val properties: MutableMap<String, String> = mutableMapOf()↵↵ fun getMultiRule(): MultiRule {↵ val rules = mutableListOf …
All 645 tokens
package io.gitlab.arturbosch.detekt.generator.collection↵↵import io.gitlab.arturbosch.detekt.api.DetektVisitor↵import io.gitlab.arturbosch.detekt.generator.collection.exception.InvalidDocumentationException↵import io.gitlab.arturbosch.detekt.rules.isOverride↵import org.jetbrains.kotlin.psi.KtCallExpression↵import org.jetbrains.kotlin.psi.KtClassOrObject↵import org.jetbrains.kotlin.psi.KtFile↵import org.jetbrains.kotlin.psi.KtProperty↵import org.jetbrains.kotlin.psi.KtReferenceExpression↵import org.jetbrains.kotlin.psi.KtSuperTypeList↵import org.jetbrains.kotlin.psi.KtValueArgumentList↵import org.jetbrains.kotlin.psi.psiUtil.containingClass↵import org.jetbrains.kotlin.psi.psiUtil.referenceExpression↵↵data class MultiRule(↵ val name: String,↵ val rules: List<String> = listOf()↵) {↵↵ operator fun contains(ruleName: String) = ruleName in this.rules↵}↵↵private val multiRule = io.gitlab.arturbosch.detekt.api.MultiRule::class.simpleName ?: ""↵↵class MultiRuleCollector : Collector<MultiRule> {↵ override val items = mutableListOf<MultiRule>()↵↵ override fun visit(file: KtFile) {↵ val visitor = MultiRuleVisitor()↵ 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 ""↵0.000 0.000 private0.000 val0.000 rules0.000 Visitor0.000 =0.000 Rule0.346 List0.000 Visitor0.000 ()↵0.000 0.000 private0.000 val0.000 properties0.148 :0.031 Mutable0.152 Map0.000 <String0.000 ,0.000 String0.000 >0.012 =0.007 mutable0.085 Map0.147 Of0.000 ()↵↵0.000 0.033 fun0.000 get0.134 Multi1.314 Rule0.744 ():0.036 Multi0.424 Rule0.134 {↵0.077 0.000 val0.000 rules0.000 =0.000 mutableListOf0.078 -
1.25
… (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 …
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 (0.105 it0.040 faded0.015 out0.006 ,0.008 but0.087 faded0.000 back0.000 in0.041 after0.104 a0.034 couple0.000 of0.000 seconds0.069 ,0.017 in0.136 case0.000 it0.009 was0.060 a0.035 PDF0.000 /mail0.014 to0.120 ).↵↵0.000 A0.034 :↵↵0.021 Try0.036 this0.021 :↵0.000 function0.182 fade1.249 And1.240 Go0.396 (x0.046 )0.000 {↵0.000 0.000 $(0.016 x0.000 ).0.000 click0.000 -
1.24
… contains e.g. a Name is not just a string, it's a Name.↵Here's an example taken from the comments of Velocity↵public class Velocity↵{↵ private readonly decimal _velocityInK …
All 539 tokens
Q:↵↵Is a low number of members in a class considered a code smell?↵↵I am currently making a simple to-do list program using the MVC pattern, and thus have a model class for the Notebook. However, something feels "off" as it has a very low number of members.↵The Notebook is composed of categories, which are composed of To-do lists, which are composed of Items. ↵What I cannot place is whether this is a case poor analysis (e.g. there are more members and responsibilities I am just missing them..) or perhaps a code smell that the class is not needed (in that case I'm not sure what to do as I could just have a list of categories in that controller, but then I don't have a notebook entity modelled which seems wrong as well).↵Below is the very simple class I have:↵class Notebook↵{↵ private String title;↵ private List<Category> categories;↵↵ public Notebook(String title, List<Category> categories)↵ {↵ }↵↵ public void setCategories(List<Category> categories)↵ {↵ }↵↵ public List<Category> getCategories()↵ {↵ }↵}↵↵I often have this issue where it feels like I am making classes for the sake of it and they have a very number of members/responsibilities, so it would be nice to know whether I am stressing for no reason or not.↵↵A:↵↵Not necessarily, there is the concept in Domain Driven Design of what is called a "Standard Type". Which is really a basic primitive wrapped in an object class. The idea is that the primitive contains no information about what information it contains, it's just a string/int/whatever. So by having say an object that surrounds the primitive and ensures that it is always valid ensures that the object has a meaning far beyond just the primitive it contains e.g. a Name is not just a string, it's a Name.↵Here's an example taken from the comments of Velocity↵public class Velocity↵{↵ private readonly decimal _velocityInKPH;↵↵ public static Velocity VelocityFromMPH(decimal mph)↵ {↵ return new Velocity(toKph(mph));↵ }↵↵ private Velocity(decimal kph)↵ {↵ this._velocityInKPH = kph;↵ }↵↵ public decimal Kph↵ {↵ get{ return this._velocityInKPH; }↵ }↵↵ public decimal Mph↵ {↵ get{ return toMph(this._velocityInKPH); }↵ }↵↵ // equals addition subtraction operators etc.↵↵ private static decimal ToMph(decimal kph){ // conversion code }↵ private static decimal ToKph(decimal mph){ // conversion code }↵}↵↵
Values
Token Negative-pole strength contains0.206 e0.023 .g0.187 .0.254 a0.028 Name0.000 is0.000 not0.009 just0.102 a0.000 string0.000 ,0.037 it0.022 's0.061 a0.019 Name0.000 .↵0.004 Here0.060 's0.102 an0.131 example0.026 taken0.028 from0.055 the0.000 comments0.000 of0.048 Velocity0.000 ↵0.023 public0.014 class0.155 Velocity1.245 ↵0.000 {↵0.000 0.032 private0.031 readonly0.002 decimal0.029 _0.000 velocity0.000 In0.000 K0.017
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: 4%.
- Judge
- deepseek-flash
- Held-out windows
- 236 active of 4,000
- Judged
- 50 detection · 37 fuzzing
- Detection outcomes
- 17 missed · 1 false alarm · 8 hit · 24 correct rejection
- Seed
- 2144657928 · corpus.jsonl
Detection windows (50), the explanation's mistakes first
- missed 0.84 · sim 0.06 No. 335, 2008↵Supreme Court of Delaware.↵Submitted: January 28, 2009.↵
- missed 0.77 · sim 0.01 " associatedObjectId="554979041">↵ <owner-list>↵ <owner id="process14f3f21
- missed 0.71 · sim 0.04 https://news.ycombinator.com/item?id=22297963](https://news.ycombinator.com/item?id=2
- missed 0.71 · sim 0.11 50% by Lancaster Newspapers, Inc. which have been accused of using their monopoly print position in the County to promote the project and stifle opposition.
- missed 0.69 · sim -0.05 command:↵softwareupdate -dav↵↵The 10.9.4 update is distributed externally, outside of the Mac App Store; the Mac App Store
- missed 0.64 · sim 0.02 ourselves to others.↵↵[np_storybar title=”Follow Financial Post” link=””]↵↵We apologize, but this video has failed to load.↵↵tap here to see
- missed 0.63 · sim 0.14 aiseReponse>reponse fausse 1.1</mauvaiseReponse>↵ <mauvaiseReponse>reponse faus
- missed 0.62 · sim 0.08 mrm27594-bib-0002){ref-type="ref"} In more recent ophthalmologic applications of MRI, such as
- missed 0.61 · sim -0.04 ="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-1"><span class="glyphicon glyphicon-search" aria-hidden="true"> </span> ↵
- missed 0.57 · sim -0.05 </ParentID> ↵↵I would need to convert this to something such as :↵<ul class="dropdown">↵ <li><a href="#">ACC</a>↵
- missed 0.53 · sim 0.10 2f6c16f1526b6e73cfa4 for node:11.2 ...↵Running on runner-7
- missed 0.52 · sim 0.15 350 audits failed to reach the FRC’s standard for audit quality.[2] At a global level, the International Forum of Independent Audit Regulators
- missed 0.52 · sim -0.02 twoway mirror end up with aberforth or is it another twoway mirror?↵ J.K. Rowling: You see Aberforth meeting Mundungus
- missed 0.51 · sim 0.16 \source.asm(12): error C2061: syntax error : identifier 'main'↵↵The code I'm trying to run is here.
- missed 0.50 · sim 0.04 52317.██████████.135fad8↵</BODY></
- missed 0.48 · sim 0.11 59?↵True↵Is 4742952 a multiple of 12?↵True↵Does 115 divide 35
- missed 0.48 · sim 0.05 "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 272, in fet
- false alarm 0.40 · sim 0.01 file:↵saveWorkbook(wb, '/tmp/demo.xls')↵↵Result: demo.xls↵↵Alternative solution with package ascii:↵ascii.data
- hit 0.82 · sim -0.01 console.log(data);↵ });↵};↵ $scope.getQuizByCampID = function (campid) {↵ alert(campid);↵$http.post("js
- hit 0.77 · sim -0.08 ());↵NpgsqlCommand showtable = new NpgsqlCommand("select * from " + tab +";" , ncon);↵adapter2.SelectCommand = showtable;↵↵or
- hit 0.73 · sim -0.06 :↵$genreID = intval($row['genre_id']); // ↵if($genreID > 0){ ↵ $this->db->where('genre
- hit 0.65 · sim 0.03 - compile_suid_client = is_linux↵+ compile_suid_client = is_linux && !is_bsd↵ ↵- compile_credentials = is_linux
- hit 0.60 · sim -0.02 ,firefox,chrome but not on IE 7?↵Updated:-↵CSS part is↵table.myCustomers li {↵ margin: 8px;↵}↵↵table
- hit 0.51 · sim 0.03 html/css approach I'd like to do. ↵public static string BuildMenu(string cprcstnm, string docType)↵ {↵ DataSet ds =
- hit 0.49 · sim 0.13 79,7 +379,7 @@ component("sandbox_services") {↵ public_deps += [ ":sandbox_services_headers" ]↵ }↵ ↵-
- hit 0.46 · sim 0.09 org.apache.felix.scr.annotations.Service;↵import org.apache.stanbol.commons.indexedgraph.IndexedGraph;↵import org.apache.stanbol.entityhub.j
- correct rejection 0.37 · sim 0.09 <datatype>ID</datatype> ↵ </field> ↵ <field minOccurs="0" maxOccurs="0"> ↵ <name>PD1.13</
- correct rejection 0.31 · sim -0.01 lot of trafficking goes on through the Hogs Head so maybe Dung was trading with Aberforth, Sirius' mirror and various other Black artifacts, he just was
- correct rejection 0.27 · sim 0.05 3*z + 50, -4*z - 3*t + 16 = -20 - 5 for z.↵5↵Solve
- correct rejection 0.23 · sim -0.02 :↵↵No, there must be a counterexample, under the mild assumption that there exists a nontrivial unitary $U \in \mathcal{R
- correct rejection 0.19 · sim 0.03 , and the level-65, using the overlapped (5, 3) DWT. It has been shown that in order to fit a high
- correct rejection 0.17 · sim 0.10 I activity may be attributed to the pepD-, pepB-, pepN-, and pepA- mutations, respectively, the reason for the loss of L activity
- correct rejection 0.16 · sim 0.08 wreak havoc on every aspect of our lives—be it business or personal. He calls this being "the chimp," and it can work either for you or
- correct rejection 0.16 · sim 0.00 < 0.01) of the IAAD than did the SAL-SHAM rats. Thereafter, over the next 21 h, the intake
- correct rejection 0.16 · sim 0.07 The articles recognizes the general technological developments as exemplified by the Teaching and Learning Technology Programme (TLTP) from which ideas about application and benefits came. The ideas
- correct rejection 0.15 · sim 0.08 atal outcome and small-for-gestational-age infants. There does not appear to be a significant benefit with the contraction stress test compared with the biophysical profile as
- correct rejection 0.15 · sim 0.13 stress test versus a biophysical profile could be identified either overall or in limiting the analysis to outcome after a negative last test. However, patients having contraction stress test
- correct rejection 0.15 · sim 0.07 own benefit,” explained Prof David Holden of the Imperial College London’s Department of Medicine and MRC Center for Molecular Bacteriology and Infection, senior author of
- correct rejection 0.13 · sim 0.05 ers can occupy a relatively significant amount of space in vehicles and other storage areas. Also, these known stretchers do not include a patient covering which aids in the
- correct rejection 0.12 · sim 0.08 bereidingen op het congres van de Piratenpartij Nederland nog in volle gang. Een klein clubje vrijwilligers versiert kraampjes
- correct rejection 0.10 · sim 0.05 volunteers contributed over 36,000 hours to our hospitals and Cancer Center.↵↵We are looking for volunteers who exemplify CAMC's core values of
- correct rejection 0.09 · sim -0.00 Department (Title VII and Rehabilitation Act). They appeal.↵↵↵ II.↵↵ Hager objects to this court’s jurisdiction over Dr. Zohoori’s appeal
- correct rejection 0.08 · sim 0.16 was created. Other stories with higher numbers would appear below it. Does that make sense?!↵↵Here is the php code that extracts the info and displays it on the
- correct rejection 0.08 · sim -0.04 ond?↵You can browse all Rosamond real estate or↵contact a Coldwell Banker agent to request more information.
- correct rejection 0.08 · sim -0.10 Limit on the Efficiency of Single-Photon Generation Based on Cavity Quantum Electrodynamics'↵---↵↵*Introduction*. Single-photon sources are a key component for phot
- correct rejection 0.07 · sim 0.04 examined for their anthropometry, dietary intake and nutritional deficiency signs. Overall chronic energy deficiency (CED) was found high (42.7 %). Severe
- correct rejection 0.06 · sim 0.19 easily make it bold?↵So, I am using the RC1 release of 2.8 right now to make a logo for a possible client, but it
- correct rejection 0.06 · sim 0.19 CD64), FcγRΙΙ (CD32), and FcγRΙΙΙ (CD16). FcγR
- correct rejection 0.06 · sim 0.08 then be compared to the genic and PKD1 allelic groups (Aim 3). This iterative process will allow the Variant Score (VS) associated
- correct rejection 0.03 · sim -0.02 Risk factors for conversion to laparotomy during laparoscopic management of an ectopic pregnancy.↵To identify risk factors for conversion to laparotomy during lapar
Fuzzing windows (37), dashed tokens were marked for the judge
- marks right · judged wrong ssjef ved Bergen Sør politistasjon, er det ikke snakk om noen koordinert aksjon for å frata dem som ble på
- marks right · judged wrong 2.927 Recep Tayyip Erdoğan : % 12,38 489 Meral Akşener : % 7
- marks right · judged wrong = [ "//url/mojo/url_gurl_struct_traits.h" ]↵deps = [↵ "//url",↵]↵type_mappings = [ "url.mojom
- marks right · judged wrong • Twitter↵↵• Facebook↵↵[/np_storybar]↵↵For example, a 1995 study by the Harvard School of Public Health indicated that people will
- marks right · judged wrong scphosts.txt -l tecmint -Av -r Android\ Games/ /tmp/↵↵Sample Output↵↵Warning: do not enter your password if anyone
- marks right · judged wrong 6954675?↵True↵Is 11000882 a multiple of 71?↵True↵Is 7
- marks right · judged wrong 323;↵ color: #e6e1dc;↵ }↵↵ .hljs-comment,↵ .hljs-quote {↵ color: #
- marks wrong · judged right box values are System.Data.DataRowView, and datagridview only displays values from the first table in the list.↵The code: ↵ DataTable tabulus
- marks right · judged right do this sort of thing within the order object and then use listeners to "fix things up" before persisting or updating.↵class Order↵{↵ public function
- marks right · judged right + campid); ↵ $http.post("js/ajax/addQuiz.php?quizid="+quizid+"&quizname="+quizname+"&campid="+camp
- marks wrong · judged wrong exmf-dist/tex/luatex/luaotfload/fontloader-font-ini.lua↵share/texmf-dist/tex/luatex
- marks wrong · judged wrong )↵↵forms.py↵from django import forms↵from project.models import Kiss↵↵class KissForm(forms.ModelForm):↵ class Meta:↵ model = Kiss↵↵and the
- marks wrong · judged wrong Agent pid 14↵$ echo "$SSH_PRIV_KEY" | ssh-add - > /dev/null↵Identity added: (stdin) ((stdin))↵$
- marks wrong · judged wrong 300 million. ↵ Henderson was elected in 2003 to a four-year term ↵and was the lone Democrat on the Board of Commissioners in
- marks wrong · judged wrong >↵ <mauvaiseReponse>reponse fausse 2.3</mauvaiseReponse>↵</questionReponse>↵<question
- marks right · judged right (),↵ // password.ToString(), database.ToString());↵ NpgsqlConnection ncon = new NpgsqlConnection(connectionstring);↵ NpgsqlCommand listfill = new NpgsqlCommand("
- marks wrong · judged wrong _id',$row['genre_id']); ↵}↵else{ ↵ $genreID = json_decode($row['genre_id'],true);↵ $this->db
- marks wrong · judged wrong names = client.listNames();↵ File folder = new File("c:\\test\\RTR_ZIP\\");↵ String[] filename = folder.list();↵↵
- marks right · judged right import models↵↵class Kiss(models.Model):↵ latitude = models.FloatField()↵ longitude = models.FloatField()↵ person1 = models.CharField(max_length =
- marks wrong · judged wrong ://localhost:5000/v2/_catalog↵↵This will list all the images you have pushed to your local registry.↵↵
- marks wrong · judged wrong 80i25, 1280×720p59.94, 1280×720p
- marks wrong · judged wrong intorero, 60, was hanging an American flag from the crane at the site at 729 Northwest 2nd Street.↵↵After about
- marks right · judged right display: inline-block;↵ width: 100%;↵ }↵↵ .hljs-selector-class {↵ color: #9b703f
- marks wrong · judged wrong template↵<form action="" method="POST">↵ {% csrf_token %}↵ {{form.as_p}}↵ <button>Send</button>↵ </form>↵↵
- marks right · judged right counter = 8↵counter = 8 | counter-- | counter = 7↵...↵counter = 1 | counter-- | counter = 0↵
- marks wrong · judged wrong of the leading causes of morbidity and mortality worldwide, but knowledge about its pathogenesis has increased substantially in recent years. The disease results from interaction between individual risk
- marks wrong · judged wrong -containing foods and beverages; 5) less hygroscopic; 6) simple conversion into sugar alcohols with other useful properties as foods. The safety
- marks wrong · judged wrong ΔK of the frequency detected by the spectrometer according to equation (1). Note that the spectrum width ΔK is represented by a maximum wavelength λmax and
- marks wrong · judged wrong , but more as an unbearable pressure "like a band around the head." Other disturbed vital feelings affect the chest or the abdomen, and mediate unpleasant sensations of
- marks wrong · judged wrong It is the first sighting there in 26 years. (AP Photo/Leuser International Foundation) NO SALES↵↵Seven Sumatran rhinos have
- marks wrong · judged wrong western suburbs of Chicago. There are 11.2 miles of paved trails for cyclists, equestrians...↵↵The Cal-Sag Trail (or, Cal
- marks wrong · judged wrong work will also guide efforts to design synthetic agonists or antagonists with immunomodulatory properties. Such compounds would have a wide range of medical applications, particularly
- marks wrong · judged wrong ↵↵My Heart Is Like A River↵↵Theme Song - Version 1↵↵Hey Girl (You Got A New Life)↵↵Take The Rain Away↵↵The Stranger↵↵
- 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 But it is precisely the union of all these unlikely counterparts that has given this region its special character and spawned some of its most unique artistic accomplishments. Chief among the
- marks wrong · judged wrong Q:↵↵Where to get flight dynamics for a flight sim model?↵↵Once, a while ago, I tried to create a Flight Simulator X model for an aircraft that
- marks wrong · judged wrong Serial imaging and SWAN sequence of developmental venous anomaly thrombosis with hematoma: Diagnosis and follow-up.↵Developmental venous anomalies (DVAs)
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
- 3%
- 1 back
- 4%
- 2–4 back
- 3%
- 5–16 back
- 13%
- 17–64 back
- 17%
- 65+ back
- 60%
- #1 (not converged) at
Module:class-1 0.17internal-2 0.13.Module-99 -0.12Module0 -0.08.openapi-119 0.06 - #2 (not converged) at
Sites:Sites0 -0.36Client-9 0.22type-3 0.18pn-1 0.13Sites-10 0.12 - #3 (not converged) at
DB:@interface-1 0.87DB0 -0.35for-13 0.27/// -2 0.19_BEGIN-68 0.15 - #4 at
advance:_BACK-205 0.16_ADV-207 -0.15#-11 -0.13_HEADER-1 0.11ANCE-206 0.10 - #5 (not converged) at
Weather:Weather0 0.26class-1 0.13ather-37 0.08by-16 0.07.We-38 0.07
Shares of the gap to <|endoftext|> at every position but the first · converged on 1 of 5 · mean 115.2 tokens back ·
agreement with replacing one token at a time ρ = 0.43 · reported, not gated
Vocabulary projection
The tokens that this unit's output raises and lowers most.
| Jacobian lens | Logit lens | |
|---|---|---|
| Promotes | 战术篮球erokee(TimeSpaneterangan将军军事士兵 |
someone IP Nte Saf GUID回家 api |
| Suppresses | -online.']-logoedImage<main.AI ldc previews |
BOVE:@"%@ableObject();)arrivawei politic面 |
This record predates vocabulary z-scores, so the tokens are listed without bars.
Top-10 overlap 0% · cos(w, J·w) 0.32 · kurtosis 3.2 (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.
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 10 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
| L12/N3777 | gate | -0.137 |
| L9/N2688 | gate | -0.122 |
| L12/N3855 | gate | -0.117 |
| L9/N1514 | up | -0.103 |
| L12/N3298 | up | +0.102 |
| L8/N1225 | gate | -0.102 |
| L11/N3086 | gate | +0.101 |
| L8/N2881 | gate | +0.101 |
| L9/N3581 | gate | +0.1 |
| L12/N4129 | gate | -0.0955 |
Upstream heads
| L13/H7 | gate | +0.289 |
| L12/H1 | up | +0.251 |
| L12/H3 | up | +0.24 |
| L10/H4 | gate | +0.224 |
| L10/H1 | gate | +0.223 |
| L12/H4 | gate | +0.221 |
| L10/H0 | up | +0.216 |
| L9/H3 | up | +0.208 |
| L12/H2 | gate | +0.208 |
| L10/H9 | up | +0.204 |
Downstream neurons
| L15/N3305 | gate | +0.185 |
| L14/N522 | gate | -0.161 |
| L14/N3711 | gate | +0.156 |
| L14/N2415 | gate | +0.14 |
| L16/N3004 | gate | -0.121 |
| L16/N2397 | gate | -0.115 |
| L17/N3958 | gate | -0.114 |
| L19/N436 | up | +0.112 |
| L23/N3984 | gate | +0.108 |
| L23/N108 | gate | -0.104 |
Downstream heads
| L23/H1 | q | +0.271 |
| L16/H0 | q | +0.267 |
| L16/H1 | k | +0.25 |
| L16/H2 | k | +0.25 |
| L16/H3 | k | +0.25 |
| L16/H4 | k | +0.25 |
| L16/H5 | k | +0.25 |
| L16/H6 | k | +0.25 |
| L21/H7 | v | +0.246 |
| L21/H8 | v | +0.246 |
From activations
Upstream neurons
| L4/N2413 | +0.121 | |
| L7/N3421 | +0.105 | |
| L4/N1472 | -0.0894 | |
| L6/N3889 | +0.0833 | |
| L5/N2903 | +0.0762 | |
| L12/N765 | +0.0691 | |
| L5/N3277 | +0.0674 | |
| L11/N1366 | +0.0557 | |
| L12/N3367 | -0.0491 | |
| L2/N294 | -0.0478 |
Upstream heads
| L12/H13 | -0.114 | |
| L8/H4 | +0.104 | |
| L10/H5 | +0.0907 | |
| L11/H5 | +0.0877 | |
| L13/H1 | +0.0819 | |
| L11/H3 | +0.0796 | |
| L10/H6 | +0.0766 | |
| L6/H1 | +0.0721 | |
| L12/H11 | +0.0706 | |
| L11/H6 | +0.0699 |
Downstream neurons
| L23/N2505 | +0.193 | |
| L23/N3994 | -0.181 | |
| L16/N3176 | -0.128 | |
| L23/N4484 | -0.124 | |
| L16/N3557 | +0.12 | |
| L15/N3334 | -0.118 | |
| L21/N4663 | +0.114 | |
| L23/N1926 | -0.11 | |
| L23/N4284 | -0.108 | |
| L18/N575 | +0.103 |
Downstream heads
| L14/H1 | v | +0.153 |
| L16/H10 | q | +0.0874 |
| L14/H2 | v | +0.0683 |
| L23/H1 | v | +0.0665 |
| L14/H10 | v | +0.0619 |
| L14/H6 | v | +0.0566 |
| L21/H9 | v | +0.056 |
| L14/H4 | v | +0.0424 |
| L14/H13 | v | +0.0421 |
| L18/H9 | v | +0.0378 |
Covariance and confounds
Confounds
- Token identity R²
- 0.32
- Position R²
- 0.01
- Frequency r
- 0.15
- Best trivial baseline
- never active · 0.58
- Hypothesis
- 0.92 ✓
Multi-last Sampling Module-autSampling.det ItemORMSites aut_NO
Co-activating neuron poles
| Pole | Lift ≥ | Both | ρ | r |
|---|---|---|---|---|
| N4066+ | 21.5 | 122 | +0.09 | +0.09 |
| N1132− | 19.4 | 111 | +0.11 | -0.12 |
| N475− | 18.0 | 104 | +0.03 | -0.07 |
| N1033− | 16.9 | 98 | +0.04 | -0.08 |
| N4555− | 16.5 | 95 | +0.04 | -0.05 |
| N2032+ | 16.1 | 94 | -0.02 | +0.00 |
| N3031+ | 15.7 | 92 | -0.03 | +0.04 |
| N560+ | 15.0 | 88 | +0.02 | +0.04 |
| N1951+ | 14.8 | 87 | +0.03 | +0.10 |
| N4844+ | 14.4 | 85 | -0.01 | +0.02 |
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
- N4066, N1132, N475
- KL pole alone
- 5.02e-05
- KL partners
- 5.23e-05
- KL together
- 1.00e-04
- Redundancy ratio
- 0.95
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-22 02:32 UTC
- Max activation
- 1.8510
- Selection
- random (seed 3583803668)
- Corpus
- corpus.jsonl · 199,896 tokens · seeded sample of 477/500 docs (≤ 200,000 tokens, seed 0) · source NeelNanda/pile-10k@127bfedc (data/*.parquet, first 500 docs) (inferred) · licence bigscience-bloom-rail-1.0
- Model revision
- 060db6499f32 · float32
- Ran on
- scan cpu · review cpu
- Run cost
- 32.4 min (slowest: scan, 8.3 min) · 4 LLM calls