Qwen/Qwen2.5-0.5B · L4/N1889 · 20261031T075939Z
Experiment 2 of 5 on this neuron, most conclusive first · record
Detects the letter c/C when it names the C programming language family, retrospectively. The strongest case (8-18) is the lowercase 'c' inside a copyright mark '(c)' right after 'Copyright'/'COPYRIGHT'/'Licensed', as in source-file license headers; uppercase '(C)' is much weaker (2-4) and '(x)', '(b)', a bare '©' or '(c)' with no Copyright word stay near 0. Moderate activity (3-8) comes when ' C' names the language (in C, ANSI C, C++, C#, C/C++, Objective-C, the C:\ drive) or on the token that disambiguates an earlier ' C' as the language (' language'/' programming' after ' C'), and on C-ecosystem tokens ('.h' in #include <...h>, malloc, free, printf). The letter C used non-programmatically (vitamin C, grade C) and other language names (Python, Java, R, D, F#, CUDA) stay near 0.
The whole hypothesis
Detects the letter c/C when it names the C programming language family, retrospectively. The strongest case (8-18) is the lowercase 'c' inside a copyright mark '(c)' right after 'Copyright'/'COPYRIGHT'/'Licensed', as in source-file license headers; uppercase '(C)' is much weaker (2-4) and '(x)', '(b)', a bare '©' or '(c)' with no Copyright word stay near 0. Moderate activity (3-8) comes when ' C' names the language (in C, ANSI C, C++, C#, C/C++, Objective-C, the C:\ drive) or on the token that disambiguates an earlier ' C' as the language (' language'/' programming' after ' C'), and on C-ecosystem tokens ('.h' in #include <...h>, malloc, free, printf). The letter C used non-programmatically (vitamin C, grade C) and other language names (Python, Java, R, D, F#, CUDA) stay near 0.
Hard negatives 11/11 rejected · holdouts 5/5 fired (independent observations; 16 probes) · P(useful) 1.00 · re-measures the probes of 20261019T113221Z; not independent evidence
specificity 1.00 · sensitivity 1.00 · counterfactual reproduction 1.00 · protocol v0.8
c CC/C-C.h malloc free printf#include language programming
Adversarial review
positive_holdout: 5/5 passed; hard_negative: 11/11 passed; counterfactual: 9/9 passed; lookahead_consistency: 1/1 passed. All gates passed.
All 26 probes
| Test | Input | Expected | Observed | |
|---|---|---|---|---|
| ✓ | positive holdout | # Copyright (c) 2021 Northwind Labs. All rights reserved.
# Licensed under the BSD 3-Clause license.
import os
import sys
def main():
print('hello')
Copyright (c) header in a Python hash-comment file, a different genre than the C-family examples. |
active | 13.902 |
| ✓ | positive holdout | COPYRIGHT (c) 1998-2003 Helga Brandt. Permission is hereby granted, free of charge, to any person obtaining a copy of this software. Uppercase COPYRIGHT followed by lowercase (c) in plain prose licence text. |
active | 6.256 |
| ✓ | positive holdout | Most of the kernel and its drivers are written in C, and the compiler we use is a strict ANSI C toolchain. Prose naming the C programming language, with ' C' and 'ANSI C', outside any code. |
active | 9.014 |
| ✓ | positive holdout | #include <stdio.h>
#include <stdlib.h>
int main(void) {
char *p = malloc(16);
printf("%s\n", p);
free(p);
return 0;
}
Classic C program with .h includes, malloc, printf and free (C ecosystem tokens). |
active | 8.032 |
| ✓ | positive holdout | Licensed under the Apache License. Copyright (c) 2019 Ocean Systems GmbH.
Licensed and Copyright (c) in a short non-code line, reordered from the examples. |
active | 14.007 |
| ✓ | hard negative | The statute provides that (a) the tenant shall pay rent monthly, (b) the landlord shall maintain the premises, and (c) either party may terminate with notice. Bare lowercase (c) as a list item with no Copyright word. |
inactive | 0.239 |
| ✓ | hard negative | (c) 2020 Marta Ruiz, all rights reserved. Photo by Marta Ruiz. '(c)' mark with no Copyright word, which the hypothesis says stays near zero. |
inactive | 0.183 |
| ✓ | hard negative | © 2022 Blue Harbor Press. Reproduction without permission is prohibited. Bare copyright sign, no (c). |
inactive | 0.159 |
| ✓ | hard negative | Copyright (x) 2018 Dana Whitfield. Licensed to the public under a permissive licence. Copyright followed by '(x)', which the hypothesis says stays near zero. |
inactive | 0.226 |
| ✓ | hard negative | Copyright (b) 2018 Dana Whitfield, see section (b) of the agreement. Copyright followed by '(b)' rather than '(c)'. |
inactive | 0.234 |
| ✓ | hard negative | Eating oranges gives you plenty of vitamin C, and my daughter got a grade C in chemistry last term. Letter C in non-programming senses (vitamin C, grade C). |
inactive | 0.253 |
| ✓ | hard negative | We rewrote the service in Python and Java, then ported the numeric parts to Rust and CUDA for the GPU. Other programming languages named, with no C. |
inactive | 0.259 |
| ✓ | hard negative | Copyright 2015 The Authors. Licensed under the MIT license; you may not use this file except in compliance with the License. Copyright and Licensed present but no (c) mark. |
inactive | 0.123 |
| ✓ | hard negative | Take the C train to Brooklyn, then walk to Pier C where Section C of the ferry terminal begins. Capital C as a letter label in transit and location context. |
inactive | 0.181 |
| ✓ | hard negative | Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document. Uppercase (C) after Copyright, which the hypothesis puts at only 2-4 (weak). |
inactive | 2.613 |
| ✓ | hard negative | Dear diary, today we went swimming and then had ice cream. Tomorrow we visit my grandmother in Lisbon and bring her flowers. Unrelated plain prose control with none of the claimed content. |
inactive | 0.198 |
| ✓ | counterfactual | // Copyright (c) 2016 Dropbox, Inc. All rights reserved. -> // Copyright (x) 2016 Dropbox, Inc. All rights reserved. | Δ 0.93 | Δ 0.93 |
| ✓ | counterfactual | Copyright (c) Microsoft Corporation. All rights reserved. -> Copyright (C) Microsoft Corporation. All rights reserved. | Δ 0.50 | Δ 0.50 |
| ✓ | counterfactual | I wrote it in ANSI C. -> I wrote it in ANSI D. | Δ 0.36 | Δ 0.36 |
| ✓ | counterfactual | I am writing a C# Windows Forms application. -> I am writing a F# Windows Forms application. | Δ 0.27 | Δ 0.27 |
| ✓ | counterfactual | I love the C language. -> I love the R language. | Δ 0.32 | Δ 0.32 |
| ✓ | counterfactual | #include <stdio.h> -> #include <stdio.py> | Δ 0.30 | Δ 0.30 |
| ✓ | counterfactual | Current directory C:\BE -> Current directory D:\BE | Δ 0.16 | Δ 0.16 |
| ✓ | counterfactual | The vitamin C content of oranges is high. -> The vitamin D content of oranges is high. | Δ 0.00 | Δ 0.00 |
| ✓ | counterfactual | Copyright (c) 2016 Dropbox, Inc. -> Copyright (c) 2017 Dropbox, Inc. | Δ 0.00 | Δ 0.00 |
| ✓ | lookahead consistency | // Copyright (c) 2016 Dropbox, Inc. All rights reserved.; Copyright (c) Microsoft Corporation. All rights reserved.; I wrote it in ANSI C.; I am writing a C# Windows Forms application.; I love the C language.; #include <stdio.h>; Current directory C:\BE; The vitamin C content of oranges is high.; Copyright (c) 2016 Dropbox, Inc. claimed retrospective; measured retrospective (KL=0.01334, tokens=['.', ',', ' rights', '++', ' program']) |
Minimal pairs
| # | Base → counterfactual | Expected Δ | Observed Δ | Sufficiency | Necessity |
|---|---|---|---|---|---|
| 1 | // Copyright (c) 2016 Dropbox, Inc. All rights reserved. → // Copyright (x) 2016 Dropbox, Inc. All rights reserved. |
0.93 | 0.93 | 1.00 effect 0.00171 matched 1.67e-05 / 0.00162 |
0.97 effect 7.04e-06 matched 3.23e-07 / 1.86e-05 |
| 2 | Copyright (c) Microsoft Corporation. All rights reserved. → Copyright (C) Microsoft Corporation. All rights reserved. |
0.50 | 0.50 | 0.97 effect 4.09e-05 matched 2.09e-06 / 5.09e-05 |
1.00 effect 7.33e-05 matched 1.1e-06 / 6.24e-05 |
| 3 | I wrote it in ANSI C. → I wrote it in ANSI D. |
0.36 | 0.36 | 1.00 effect 0.00343 matched 9.43e-05 / 0.000944 |
1.00 effect 0.00351 matched 0.00012 / 0.00124 |
| 4 | I am writing a C# Windows Forms application. → I am writing a F# Windows Forms application. |
0.27 | 0.27 | 1.00 effect 0.00264 matched 1.26e-05 / 0.000671 |
1.00 effect 0.00156 matched 1.13e-05 / 0.00143 |
| 5 | I love the C language. → I love the R language. |
0.32 | 0.32 | 1.00 effect 0.00375 matched 4.12e-05 / 0.000736 |
1.00 effect 0.0045 matched 4.57e-05 / 0.000604 |
| 6 | #include <stdio.h> → #include <stdio.py> |
0.30 | 0.30 | 1.00 effect 0.017 matched 0.000126 / 0.00142 |
1.00 effect 0.00298 matched 1.39e-05 / 0.000584 |
| 7 | Current directory C:\BE → Current directory D:\BE |
0.16 | 0.16 | 1.00 effect 0.000666 matched 7.7e-06 / 0.000295 |
1.00 effect 0.000249 matched 3.93e-06 / 0.000179 |
| 8 | The vitamin C content of oranges is high. → The vitamin D content of oranges is high. |
0.00 | 0.00 | — | — |
| 9 | Copyright (c) 2016 Dropbox, Inc. → Copyright (c) 2017 Dropbox, Inc. |
0.00 | 0.00 | — | — |
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 7 non-control pairs, on next-token KL. Median effect 0.00264 (sufficiency) and 0.00156 (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.
-
18.24
/*#######################################################↵ * Copyright (c) 2014 Jeff Martin↵ * …
All 570 tokens
/*#######################################################↵ * Copyright (c) 2014 Jeff Martin↵ * Copyright (c) 2015 Pedro Lafuente↵ * Copyright (c) 2017-2019 Gregor Santner↵ *↵ * Licensed under the MIT license.↵ * You can get a copy of the license text here:↵ * https://opensource.org/licenses/MIT↵###########################################################*/↵package other.writeily.ui;↵↵import android.app.Dialog;↵import android.os.Bundle;↵import android.support.annotation.NonNull;↵import android.support.v4.app.DialogFragment;↵import android.support.v7.app.AlertDialog;↵import android.text.TextUtils;↵↵import net.gsantner.markor.R;↵import net.gsantner.markor.util.AppSettings;↵↵import java.io.Serializable;↵↵public class WrConfirmDialog extends DialogFragment {↵ public static final String FRAGMENT_TAG = "WrConfirmDialog";↵↵ private static final String EXTRA_TITLE = "EXTRA_TITLE";↵ private static final String EXTRA_MESSAGE = "EXTRA_MESSAGE";↵ public static final String EXTRA_DATA = "EXTRA_DATA";↵↵ private Serializable _data;↵ private ConfirmDialogCallback[] _callbacks;↵ private String _summary;↵↵ public static WrConfirmDialog newInstance(String title, String message,↵ Serializable data, ConfirmDialogCallback... callbacks) {↵ WrConfirmDialog confirmDialog = new WrConfirmDialog();↵ Bundle args = new Bundle();↵ args.putSerializable(EXTRA_DATA, data);↵ args.putString(EXTRA_TITLE, title);↵ args.putString(EXTRA_MESSAGE, message);↵ confirmDialog.setArguments(args);↵ confirmDialog.setCallbacks(callbacks);↵ return confirmDialog;↵ }↵↵ public void setCallbacks(ConfirmDialogCallback[] callbacks) {↵ _callbacks = callbacks;↵ }↵↵ @Override↵ @NonNull↵ public Dialog onCreateDialog(Bundle savedInstanceState) {↵ String title = getArguments().getString(EXTRA_TITLE);↵ String message = getArguments().getString(EXTRA_MESSAGE);↵ _data = getArguments().getSerializable(EXTRA_DATA);↵↵ AlertDialog.Builder dialogBuilder;↵ boolean darkTheme = AppSettings.get().isDarkThemeEnabled();↵ dialogBuilder = new AlertDialog.Builder(getActivity(), darkTheme ?↵ R.style.Theme_AppCompat_Dialog : R.style.Theme_AppCompat_Light_Dialog);↵↵ dialogBuilder.setTitle(title);↵ if (!TextUtils.isEmpty(message)) {↵ dialogBuilder.setMessage(message);↵ }↵↵ dialogBuilder.setPositiveButton(getString(android.R.string.ok), (dialog, which) -> {↵ if (_callbacks != null) {↵ for (ConfirmDialogCallback cdc : _callbacks) {↵ if (cdc != null) {↵ cdc.onConfirmDialogAnswer(true, _data);↵ }↵ }↵ }↵ });↵↵ dialogBuilder.setNegativeButton(getString(R.string.cancel), (dialog, which) -> {↵ dialog.dismiss();↵ for (ConfirmDialogCallback cdc : _cal
Values
Token Positive-pole strength /*0.000 ################################################0.794 #######↵0.319 *0.000 Copyright0.079 (0.336 c18.237 )0.743 0.482 20.000 00.000 10.000 40.046 Jeff0.000 Martin0.000 ↵0.244 *0.000 -
16.97
///↵/// Copyright (c) 2016 Dropbox, Inc. …
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 Positive-pole strength ///↵0.000 ///0.033 Copyright0.228 (0.633 c16.969 )0.827 0.653 20.002 00.012 10.024 60.000 Dropbox0.000 ,0.000 Inc0.000 .0.000 -
12.58
package network↵↵// Copyright (c) Microsoft and contributors. All rights reserved.↵ …
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 Positive-pole strength package0.002 network0.000 ↵↵0.018 //0.000 Copyright0.188 (0.317 c12.580 )0.347 Microsoft0.000 and0.015 contributors0.000 .0.035 0.056 All0.000 rights0.000 reserved0.001 .↵0.042 -
5.88
… be used by demo apps from demo directory. ↵Additional library, that can not be a part of my library (it is essentially a wrapper for some C++ external library) is also to be compiled as …
All 526 tokens
Q:↵↵CMake link directory passing when compiling shared library↵↵Say I have C project with the following structure (simplified):↵|- CMakeLists.txt <- This is root CMake↵|- lib↵ |- <some source files>↵ |- CMakeLists.txt <- CMake file for building the library↵|- demo↵ |- <some source files>↵ |- CMakeLists.txt <- CMake for building demo apps↵|- extra_lib↵ |- <some source files>↵ |- CMakeLists.txt <- CMake for building supplementary library↵↵Now, I want to build my library (living in lib) as a shared library to be used by demo apps from demo directory. ↵Additional library, that can not be a part of my library (it is essentially a wrapper for some C++ external library) is also to be compiled as a shared library and then linked to my library.↵I have a problem with including dependencies for additional library. In its CMakeLists.txt I've defined link_directories to point location where .so libs are stored and then target_link_libraries to point which should be linked. At the end I did export target.↵include_directories(${EXTERNAL_DIR}/include)↵link_directories(${EXTERNAL_DIR}/lib)↵↵add_library(extra_lib SHARED extra_lib.cpp)↵↵target_link_libraries(extra_lib↵ some_lib↵)↵↵export(TARGETS extra_lib FILE extra_lib.cmake)↵↵The point is that when I try to compile lib and link it against extra_lib I get an error that some_lib is not found what I guess means that link_directories is local to the extra_lib.↵Now, question is how can I make it propagate together with dependencies? I'd like it to work in the way that adding extra_lib as subdirectory and as a dependency for my lib would automatically add linked directories from extra_lib to the lib linking process.↵The linking process would look like:↵(some external library) --> extra_lib --> lib --> demo app↵↵A:↵↵First off, the CMake docs state that commands like include_directories and link_directories are rarely necessary. In fact, it is almost always better to use target_include_directories and target_link_libraries instead.↵Secondly, the reason your approach fails is because you need to let CMake know about the existence of some_lib. You can do this like so:↵add_library(some_lib SHARED IMPORTED)↵set_target_properties(some_lib↵ PROPERTIES↵ IMPORTED_LOCATION ${EXTERNAL_DIR}/lib/libsome_lib.so)↵↵Then, afterwards:↵target_link_libraries(extra_lib some_lib)↵↵
Values
Token Positive-pole strength be0.000 used0.000 by0.397 demo0.748 apps0.311 from0.060 demo0.462 directory0.393 .0.000 ↵0.000 Additional0.025 library0.864 ,0.000 that0.000 can0.000 not0.000 be0.055 a0.030 part0.136 of0.000 my0.000 library1.662 (0.000 it0.000 is0.024 essentially0.069 a0.000 wrapper1.198 for0.466 some0.168 C5.879 ++0.230 external1.819 library1.024 )0.000 is0.000 also0.043 to0.013 be0.000 compiled1.156 as0.000 -
5.79
… address of printf will be stored in an import table entry and our instruction dereferences it to find the address of printf and calls it. ↵Trying to link this will also result in an error (error L …
All 686 tokens
Q:↵↵Assembly in Visual Studio 2013 not building even after enabling Microsoft Macro Assembler↵↵I'm trying to run a pretty basic assembly file to do a little math and print the output, nothing challenging. I've followed the steps given from places such as here but my build still fails and there are errors on every single line about syntax. Errors such as:↵1>c:\users\damian\documents\visual studio 2013\projects\test345\test345\source.asm(22): error C2061: syntax error : identifier 'dword'↵1>c:\users\damian\documents\visual studio 2013\projects\test345\test345\source.asm(24): error C2061: syntax error : identifier 'add'↵1>c:\users\damian\documents\visual studio 2013\projects\test345\test345\source.asm(27): error C2061: syntax error : identifier 'pop'↵1>c:\users\damian\documents\visual studio 2013\projects\test345\test345\source.asm(12): error C2061: syntax error : identifier 'main'↵↵The code I'm trying to run is here. I've tried changing from cpp to c compiling, I've tried setting an entry point in the linker, and I've tried right clicking on project->Build Dependencies->Build Customizations and checking masm but none of those made any difference at all. Is there something else I'm missing?↵↵A:↵↵The code you tried to assemble uses NASM syntax. You need to configure Visual Studio to use NASM instead. ↵1) Install NASM and add it's path to the PATH environment variable.↵2) Right click on your asm file and then choose Properties->General and then choose Custom Build Tool for the Item Type field.↵3) Click on Apply.↵4) On the Custom Build Tool page set nasm -f win32 -o "$(ProjectDir)$(IntDir)%(Filename).obj" "%(FullPath)" for the Command Line field.↵5) Set the Outputs field to $(IntermediateOutputPath)%(Filename).obj ↵This will make NASM assemble your assembly source file into visual studio compatible object file.↵We are not done yet though, you need to make some changes to the assembly file before you can link it using MSVC's linker.↵1) MSVC's linker requires your functions to start with an underscore so main becomes _main.↵2) The naming convention when declaring imported APIs is different too. So extern printf becomes extern __imp__printf↵3) Call instructions to imported APIs are different too. call printf becomes call [__imp__printf]. The address of printf will be stored in an import table entry and our instruction dereferences it to find the address of printf and calls it. ↵Trying to link this will also result in an error (error LNK2001: unresolved external symbol _mainCRTStartup). The way I beat this is including a c file with a dummy function that does nothing. That way, the CRT startup stub gets linked. (If there is a better method, suggest it in the comments).↵↵
Values
Token Positive-pole strength address2.232 of3.629 printf2.668 will0.000 be0.130 stored0.681 in0.700 an0.005 import0.000 table0.000 entry0.332 and0.019 our0.000 instruction0.000 dere0.996 ferences0.101 it0.000 to0.233 find0.000 the0.119 address1.824 of2.510 printf2.321 and0.003 calls0.738 it0.000 .0.000 ↵0.032 Trying0.000 to0.000 link5.794 this0.000 will0.000 also0.009 result0.020 in0.127 an0.053 error0.143 (0.013 error0.954 L0.000 -
5.77
… ?↵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 …
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 Positive-pole strength ?↵0.083 Thanks0.000 !↵↵0.075 A0.010 :↵↵0.056 Segment0.483 ation1.740 faults1.389 in0.036 Python0.000 can0.000 occur0.121 due0.101 to0.000 database0.000 connectors0.047 .0.141 The0.139 drivers0.000 used0.000 to0.000 connect0.171 to0.013 the0.018 database0.000 are0.000 usually0.008 coded0.000 in0.116 a0.000 C5.774 base0.000 ,0.007 so0.054 in0.041 case0.096 of0.084 RAM0.007 overload0.000 or0.220 perhaps0.127 -
5.71
… and run your debug commands, but as far as I know you can't include everything into Notepad++ (i.e. it's no real C/C++ IDE).↵Only option you've got is adding …
All 313 tokens
Q:↵↵How to Compile and Debug C++ in Notepad++ using Turbo C++ Compiler↵↵I have installed NppExecute plugin in notepad++. I am not able to figure out next step to compile and debug C,C++ programs in Notepad++.↵System Details: (a) Turbo C directory C:\TC (b) OS Windows 7↵Please provide complete details on how to set Environment Variable and Scripts for Compiling and Debugging. ↵↵A:↵↵I wondering why somone wants to use turbo C++.If you run Windows, just use Visual Studio Express, or Dev-C++.If you still want to use Turbo C you will run into several problems with compatibility of this ancient software.↵↵A:↵↵Notepad++ has the run feature, but as far as I know it's unable to help you debugging (e.g. stepping through code, watching variables, etc.).↵Your best bet would be using a simple batch file to compile the code and run your debug commands, but as far as I know you can't include everything into Notepad++ (i.e. it's no real C/C++ IDE).↵Only option you've got is adding the created batch file as the program to be run by NppExecute.↵Edit:↵Overall, as rkosegi suggested, if possible, use a more up-to-date toolchain.↵Microsoft's Visual C++ Express Edition can be downloaded for free and used for private or commercial projects.↵If you target cross platform code, it might be easier to use MinGW to use GCC/G++ under Windows.↵↵
Values
Token Positive-pole strength and0.057 run0.000 your0.000 debug0.091 commands0.046 ,0.000 but0.000 as0.000 far0.000 as0.000 I0.000 know0.000 you0.016 can0.000 't0.000 include1.056 everything0.000 into0.000 Not0.000 epad0.000 ++0.014 (0.000 i0.000 .e0.000 .0.040 it0.014 's0.000 no0.000 real0.070 C4.310 /C5.708 ++0.726 IDE0.000 ).↵0.065 Only0.019 option0.266 you0.000 've0.000 got0.000 is0.092 adding0.134 -
4.58
… ProfilerJniMethod.h"↵↵#include <JavaScriptCore/JSProfilerPrivate.h>↵↵#include <jschelpers/JSCHelpers.h>↵#include <jni.h>↵#include <string>↵↵using namespace facebook::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 Positive-pole strength Profiler0.000 J0.004 ni0.000 Method0.000 .h0.000 "↵↵0.457 #include2.913 <1.031 JavaScript0.000 Core0.000 /0.422 JS0.000 Profiler0.000 Private0.000 .h0.662 >↵↵0.000 #include2.696 <0.860 js0.000 ch0.062 elpers0.000 /0.493 JS0.000 CH0.062 elpers0.000 .h0.542 >↵0.001 #include1.996 <0.654 jni0.000 .h4.583 >↵0.098 #include2.513 <1.047 string0.101 >↵↵0.000 using0.000 namespace0.000 facebook0.123 ::0.093 jni0.000 -
4.08
… spell NYI; Timers need adjustments↵ * SDCategory: Temple of Ahn'Qiraj↵ * EndScriptData↵ */↵↵#include "precompiled.h"↵#include "temple_of …
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 spell0.116 NY0.003 I0.000 ;0.000 Tim0.037 ers0.007 need0.009 adjustments0.016 ↵0.000 *0.000 S0.000 DC0.000 ategory0.148 :0.000 0.027 Temple0.009 of0.000 Ah0.000 n0.000 '0.000 Q0.000 ir0.163 aj0.080 ↵0.009 *0.000 End0.000 Script0.198 Data0.138 ↵0.000 */↵↵0.017 #include4.085 "1.129 pre0.199 compiled0.563 .h2.027 "↵0.487 #include2.959 "1.000 tem0.057 ple0.043 _of0.000 -
3.80
… _MPL_PREPROCESSED_HEADER advance_backward.hpp↵# include <boost/mpl/aux_/include_preprocessed.hpp>↵↵#else↵↵# include <boost/mpl/limits/unrolling.hpp>↵ …
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 Positive-pole strength _M0.301 PL0.658 _PRE2.005 PRO0.035 CES0.010 SED0.000 _HEADER1.131 advance0.092 _backward0.000 .hpp0.000 ↵0.372 #0.000 0.000 include2.403 <0.893 boost0.000 /m0.000 pl0.000 /0.098 aux0.000 _/0.000 include1.858 _pre0.613 processed0.028 .hpp0.000 >↵↵0.000 #else0.662 ↵↵0.567 #0.213 0.000 include3.801 <0.984 boost0.000 /m0.000 pl0.000 /0.058 limits0.042 /un0.000 rolling0.750 .hpp0.000 >↵0.000 -
3.29
… )↵#pragma warning(push)↵#pragma warning(disable:4250)↵#elif defined(__GNUC__)↵#pragma GCC diagnostic push↵#pragma GCC diagnostic ignored "-Wparentheses-equality"↵#elif defined(__clang__)↵ …
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 Positive-pole strength )↵0.511 #pragma1.466 warning0.565 (push0.000 )↵0.475 #pragma0.923 warning0.329 (dis0.818 able0.000 :0.457 40.000 20.000 50.069 00.019 )↵0.297 #elif0.795 defined1.265 (__0.668 GNUC1.706 __)↵0.229 #pragma1.463 GCC1.991 diagnostic0.000 push0.000 ↵0.134 #pragma1.053 GCC1.620 diagnostic0.000 ignored0.000 "-0.505 W3.290 paren0.000 theses0.488 -e1.230 quality0.000 "↵0.011 #elif0.620 defined1.335 (__0.828 clang0.356 __)↵0.243 -
3.28
… /broker_simple_message.cc",↵ "syscall_broker/broker_simple_message.h",↵+ ]↵+ sources += [↵+ "services/libc_interceptor.cc",↵+ "services/libc …
All 422 tokens
--- sandbox/linux/BUILD.gn.orig 2019-04-08 08:18:26 UTC↵+++ sandbox/linux/BUILD.gn↵@@ -12,12 +12,12 @@ if (is_android) {↵ }↵ ↵ declare_args() {↵- compile_suid_client = is_linux↵+ compile_suid_client = is_linux && !is_bsd↵ ↵- compile_credentials = is_linux↵+ compile_credentials = is_linux && !is_bsd↵ ↵ # On Android, use plain GTest.↵- use_base_test_suite = is_linux↵+ use_base_test_suite = is_linux && !is_bsd↵ }↵ ↵ if (is_nacl_nonsfi) {↵@@ -379,7 +379,7 @@ component("sandbox_services") {↵ public_deps += [ ":sandbox_services_headers" ]↵ }↵ ↵- if (is_nacl_nonsfi) {↵+ if (is_nacl_nonsfi || is_bsd) {↵ cflags = [ "-fgnu-inline-asm" ]↵ ↵ sources -= [↵@@ -387,6 +387,8 @@ component("sandbox_services") {↵ "services/init_process_reaper.h",↵ "services/scoped_process.cc",↵ "services/scoped_process.h",↵+ "services/syscall_wrappers.cc",↵+ "services/syscall_wrappers.h",↵ "services/yama.cc",↵ "services/yama.h",↵ "syscall_broker/broker_channel.cc",↵@@ -405,6 +407,10 @@ component("sandbox_services") {↵ "syscall_broker/broker_process.h",↵ "syscall_broker/broker_simple_message.cc",↵ "syscall_broker/broker_simple_message.h",↵+ ]↵+ sources += [↵+ "services/libc_interceptor.cc",↵+ "services/libc_interceptor.h",↵ ]↵ } else if (!is_android) {↵ sources += [↵
Values
Token Positive-pole strength /b0.000 roker0.000 _simple0.111 _message0.000 .cc0.195 ",↵0.436 0.090 "0.000 syscall0.106 _b0.000 roker0.000 /b0.000 roker0.000 _simple0.112 _message0.000 .h1.794 ",↵0.341 +0.000 0.000 ]↵0.083 +0.000 0.000 sources0.081 +=0.053 [↵0.072 +0.000 0.000 "0.000 services0.000 /lib1.904 c3.283 _inter0.392 ceptor0.000 .cc0.000 ",↵0.270 +0.000 0.000 "0.000 services0.000 /lib2.248 c3.116
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.
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.
Vocabulary projection
The tokens that this unit's output raises and lowers most.
| Jacobian lens | Logit lens | |
|---|---|---|
| Promotes | mallocmallocMallocscanf(NULL printf scanfprintf |
≪ритор/mm佚tí🏽㎞IFn |
| Suppresses | (£ £ � � � Welsh Wales organising |
(rawValueudesivesposé(rowIndexcern sıkıntı.findIndex |
This record predates vocabulary z-scores, so the tokens are listed without bars.
Top-10 overlap 0% · cos(w, J·w) 0.16 · kurtosis 4.1 (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.
From activations. Averaged over this pole's peak on 12 of the review's prompts where it fired. Upstream: the first-order change in its strength when a unit's direct write is removed (+ excites). Downstream: the change in a later unit when this pole's write is removed from that unit's input alone (one of Q, K or V for a head).
From activations
Upstream neurons
| L3/N4731 | +1.11 | |
| L3/N3950 | +1.03 | |
| L3/N2601 | +0.759 | |
| L3/N1599 | +0.589 | |
| L3/N1098 | +0.428 | |
| L3/N3434 | +0.4 | |
| L2/N4181 | +0.383 | |
| L3/N2673 | -0.361 | |
| L1/N1730 | -0.354 | |
| L3/N768 | +0.346 |
Upstream heads
| L4/H12 | -4.7 | |
| L4/H13 | +0.787 | |
| L4/H10 | +0.729 | |
| L4/H9 | +0.694 | |
| L4/H8 | -0.566 | |
| L4/H11 | +0.455 | |
| L1/H11 | -0.33 | |
| L1/H6 | -0.311 | |
| L2/H6 | +0.304 | |
| L1/H4 | +0.295 |
Downstream neurons
| L23/N1341 | +2.12 | |
| L23/N3728 | -1.87 | |
| L5/N2706 | -1.82 | |
| L6/N4757 | -1.58 | |
| L5/N2088 | -1.57 | |
| L23/N2788 | +1.53 | |
| L5/N4076 | -1.38 | |
| L23/N3423 | -1.29 | |
| L7/N3964 | +1.26 | |
| L17/N2298 | +1.24 |
Downstream heads
| L5/H9 | v | +1.94 |
| L5/H10 | v | +1.62 |
| L12/H0 | v | +1.42 |
| L10/H6 | v | +1.35 |
| L14/H10 | v | +1.21 |
| L8/H3 | v | +1.15 |
| L14/H1 | v | +1.07 |
| L5/H8 | q | +0.948 |
| L21/H9 | v | +0.829 |
| L13/H3 | v | +0.82 |
Covariance and confounds
Confounds
- Token identity R²
- 0.34
- Position R²
- 0.00
- Frequency r
- 0.05
- Best trivial baseline
- never active · 0.50
- Hypothesis
- 1.00 ✓
printf extern#include Fault#define linked GCCinclude#endif.h linkingmain
Co-activating neuron poles
| Pole | Lift ≥ | Both | ρ | r |
|---|---|---|---|---|
| N732+ | 42.7 | 13 | +0.06 | +0.06 |
| N4218+ | 42.7 | 13 | -0.04 | +0.03 |
| N228− | 42.7 | 13 | +0.03 | -0.07 |
| N3946− | 42.7 | 13 | +0.02 | -0.12 |
| N1186− | 42.7 | 13 | +0.00 | -0.03 |
| N619− | 38.2 | 12 | +0.01 | -0.07 |
| N1235− | 29.5 | 10 | -0.05 | -0.01 |
| N2156− | 25.5 | 9 | -0.02 | -0.03 |
| N2783− | 25.5 | 9 | -0.02 | -0.11 |
| N4271+ | 21.6 | 8 | +0.05 | +0.01 |
Read more
Ranked by the 95% lower bound of co-activation lift: how much more often a pole fires when this one does, with chance coincidences discounted. ρ ranks the values, so heavy tails don't sway it.
Joint ablation
- Partners
- N732, N4218, N228
- KL pole alone
- 8.09e-03
- KL partners
- 2.04e-04
- KL together
- 8.16e-03
- Redundancy ratio
- 0.98
The partners don't change the pole's effect much.
Run details
- Submitted by
- claude-opus-5-5
- Reviewed by
- claude-sonnet-5-5
- Reviewed at
- 2026-10-31 07:59 UTC
- Max activation
- 18.2372
- Selection
- random (seed 2539040568)
- Corpus
- corpus.jsonl · 212,232 tokens · source NeelNanda/pile-10k@127bfedc (data/*.parquet, first 500 docs) (inferred) · licence bigscience-bloom-rail-1.0
- Model revision
- 060db6499f32 · float32
- Ran on
- scan cpu · review cpu
- Run cost
- 5.1 min (slowest: probe_measurement, 4.4 min)