Open Interpretability Models Contributors Research Posts About

Qwen/Qwen2.5-0.5B · L10/N3054 · 20261021T134947Z

Experiment 2 of 2 on this neuron, most conclusive first · record

#2 · positive pole + VERIFIED strong evidence for · 0.98 counts toward status 2026-10-21 · 20261021T134947Z

Fires on the content tokens of a hand-written literal data value in code, config, connection strings, paths or command lines: the sample or placeholder string a programmer typed in, such as a person's name, password, username, hostname, sheet or folder name, or the words demo/test. It is strongest on the first one or two subword tokens after the opening quote, '=', ':\\' or '-l' that begins the value, and on arbitrary or idiosyncratic values ("Maria", "demo", tecmint, students, C:\\BE). It is weak on conventional system or default values (Windows, Sheet1, Sales, localhost, 127.0.0.1) and near zero on keywords, variable references (null, None, $other, getpass()) and ordinary prose, even when the prose contains the same word.

The whole hypothesis

Fires on the content tokens of a hand-written literal data value in code, config, connection strings, paths or command lines: the sample or placeholder string a programmer typed in, such as a person's name, password, username, hostname, sheet or folder name, or the words demo/test. It is strongest on the first one or two subword tokens after the opening quote, '=', ':\\' or '-l' that begins the value, and on arbitrary or idiosyncratic values ("Maria", "demo", tecmint, students, C:\\BE). It is weak on conventional system or default values (Windows, Sheet1, Sales, localhost, 127.0.0.1) and near zero on keywords, variable references (null, None, $other, getpass()) and ordinary prose, even when the prose contains the same word.

Hard negatives 11/12 rejected · holdouts 4/4 fired (independent observations; 16 probes) · P(useful) 0.99 · re-measures the probes of 20261019T223933Z; not independent evidence

Balanced accuracy
0.96
Sufficiency
0.97
Necessity
0.97
Lookahead KL
0.0008
✓ enough hard negatives ✓ enough holdouts ✓ specificity ✓ sensitivity ✓ counterfactual reproduction ✓ lookahead consistent ✓ independent review ✓ beats confound baseline

specificity 0.92 · sensitivity 1.00 · counterfactual reproduction 1.00 · protocol v0.6

testTESTmint=studentsdemoMariaJoãoQuizBETRhunter

Adversarial review

hard_negative: 11/12 passed; positive_holdout: 4/4 passed; counterfactual: 8/8 passed; lookahead_consistency: 1/1 passed. All gates passed.

Hard negatives 11/12 stay below Positive holdouts 4/4 reach it threshold 0.71 (25% of max) → active passed · 0.061 (2% of max) Maria went to the market with her friend João, and they bought some bread before heading home. passed · 0.065 (2% of max) Please email the hunter who found the mint condition coin; he lives in a small town near the river. passed · 0.072 (3% of max) The doctor said the results of the test were negative, and a demo of the new device will follow next week. passed · 0.097 (3% of max) $conn = new mysqli($host, $user, $pass, $db); $name = $_POST['name']; passed · 0.118 (4% of max) # TODO: change the demo password before shipping and remove the test user from the database passed · 0.118 (4% of max) if user is None: password = getpass.getpass() name = other_user return null passed · 0.124 (4% of max) for (int i = 0; i < n; i++) { total = total + values[i]; } return total; passed · 0.130 (5% of max) def test_login(self): self.assertTrue(self.client.login()) self.run_test_suite() passed · 0.139 (5% of max) Students in the class were asked to take a quiz on Monday; the teacher said the quiz would be easy. passed · 0.196 (7% of max) The username field is required. Enter your password and click Login to continue to your account. passed · 0.245 (9% of max) x = 5 y = x + 2 z = y * x failed · 0.821 (29% of max) client.connect("localhost") sheet = workbook.getSheet("Sheet1") os = "Windows" host = "127.0.0.1" passed · 2.273 (80% of max) $conn = mysqli_connect("db.example.org", "Carlos", "hunter2", "inventario"); passed · 3.207 (113% of max) const user = { name: "Priya", email: "[removed]", team: "Quiz" }; console.log(user); passed · 3.816 (134% of max) mysql -u maria -p --host=sandbox docker run --name tecmint-demo -e POSTGRES_PASSWORD=swordfish postgres passed · 4.528 (159% of max) [database] user: Joaquim password: Lisboa2020 schema: Escola folder: D:\Projetos\TR 0 max 2.85
passed failed Each probe's peak positive-pole strength. The shaded side of the line counts as active. Hover a dot for its prompt.
All 25 probes
TestInputExpectedObserved
✓ hard negative The doctor said the results of the test were negative, and a demo of the new device will follow next week.
Trigger words test and demo used in ordinary prose, hypothesis says near zero.
inactive 0.072
✓ hard negative if user is None: password = getpass.getpass() name = other_user return null
Code with credential-like variables but only keywords and variable references, no literal value.
inactive 0.118
✗ hard negative client.connect("localhost") sheet = workbook.getSheet("Sheet1") os = "Windows" host = "127.0.0.1"
Conventional default string literals that the hypothesis says are weak.
inactive 0.821
✓ hard negative Maria went to the market with her friend João, and they bought some bread before heading home.
Claimed trigger names Maria and João in plain narrative prose, not a data value.
inactive 0.061
✓ hard negative Students in the class were asked to take a quiz on Monday; the teacher said the quiz would be easy.
Trigger words students and quiz in prose.
inactive 0.139
✓ hard negative def test_login(self): self.assertTrue(self.client.login()) self.run_test_suite()
The token test appears in identifiers and function names, not as a literal value.
inactive 0.130
✓ hard negative # TODO: change the demo password before shipping and remove the test user from the database
Comment prose about demo/test/password, no typed literal value.
inactive 0.118
✓ hard negative The username field is required. Enter your password and click Login to continue to your account.
UI instruction prose discussing username and password without values.
inactive 0.196
✓ hard negative Please email the hunter who found the mint condition coin; he lives in a small town near the river.
Trigger tokens hunter and mint in unrelated senses in prose.
inactive 0.065
✓ hard negative for (int i = 0; i < n; i++) { total = total + values[i]; } return total;
Code with = signs and no string data values, tests = delimiter control.
inactive 0.124
✓ hard negative x = 5 y = x + 2 z = y * x
Equals signs with numeric/variable operands, no sample strings.
inactive 0.245
✓ hard negative $conn = new mysqli($host, $user, $pass, $db); $name = $_POST['name'];
Variable references used where literals would be, hypothesis says near zero.
inactive 0.097
✓ positive holdout $conn = mysqli_connect("db.example.org", "Carlos", "hunter2", "inventario");
PHP connection call with idiosyncratic hand-typed username, password and database names.
active 2.273
✓ positive holdout mysql -u maria -p --host=sandbox docker run --name tecmint-demo -e POSTGRES_PASSWORD=swordfish postgres
Command line with typed username, container name and password values after - flags and =.
active 3.816
✓ positive holdout [database] user: Joaquim password: Lisboa2020 schema: Escola folder: D:\Projetos\TR
Config file with arbitrary names, password and Windows path in a different genre (YAML/INI-like).
active 4.528
✓ positive holdout const user = { name: "Priya", email: "[removed]", team: "Quiz" }; console.log(user);
JavaScript object literal with sample name and placeholder strings, a paraphrase of typed demo data.
active 3.207
✓ counterfactual $name = "Maria"; -> $name = $other; Δ 0.85 Δ 0.87
✓ counterfactual $user = "Maria"; -> My name is Maria. Δ 0.55 Δ 0.59
✓ counterfactual sheet <- createSheet(wb, "demo") -> sheet <- createSheet(wb, "Sales") Δ 0.55 Δ 0.56
✓ counterfactual Current directory C:\BE -> Current directory C:\Windows Δ 0.45 Δ 0.46
✓ counterfactual password = "hunter2" -> password = getpass() Δ 0.45 Δ 0.47
✓ counterfactual db.connect(host="localhost", user="maria", passwd="students") -> db.connect(host="localhost", user="maria", passwd=password) Δ 0.18 Δ 0.18
✓ counterfactual x = "demo" -> x = "Demo" Δ -0.05 Δ -0.08
✓ counterfactual The word demo appears here. -> The word data appears here. Δ 0.00 Δ -0.01
✓ lookahead consistency $name = "Maria";; $user = "Maria";; sheet <- createSheet(wb, "demo"); Current directory C:\BE; password = "hunter2"; db.connect(host="localhost", user="maria", passwd="students"); x = "demo"; The word demo appears here.
claimed retrospective; measured retrospective (KL=0.0007582, tokens=['",', '1', '")\n', 'mar', '";\n'])

Minimal pairs

Median (score) Sufficiency: 0.97 · median of 5 pairs 0.97 Necessity: 0.97 · median of 5 pairs 0.97 0.5 = a typical matched neuron 0 0.25 0.5 0.75 1
sufficiency (clean → corrupted) necessity (corrupted → clean) This record predates per-pair effects, so only the medians are shown.
#Base → counterfactualExpected ΔObserved Δ
1 $name = "Maria";
→ $name = $other;
0.85 0.87
2 $user = "Maria";
→ My name is Maria.
0.55 0.59
3 sheet <- createSheet(wb, "demo")
→ sheet <- createSheet(wb, "Sales")
0.55 0.56
4 Current directory C:\BE
→ Current directory C:\Windows
0.45 0.46
5 password = "hunter2"
→ password = getpass()
0.45 0.47
6 db.connect(host="localhost", user="maria", passwd="students")
→ db.connect(host="localhost", user="maria", passwd=password)
0.18 0.18
7 x = "demo"
→ x = "Demo"
-0.05 -0.08
8 The word demo appears here.
→ The word data appears here.
0.00 -0.01
Read more

Δ is the base prompt's peak positive-pole strength minus the counterfactual's, as a fraction of the max activation.

Each causal score ranks the pole's patch effect among the 32 same-layer neurons that change as much between each pair, so 0.5 is typical. Sufficiency patches clean into corrupted, and necessity corrupted into clean. The score is the median over 5 non-control pairs, on next-token KL. Median effect 0.000368 (sufficiency) and 0.000419 (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. 2.85 … := CertificateRequest{↵ CertificateRequest: x509.CertificateRequest{↵ Subject: pkix.Name{↵ CommonName: "test.acme.co",↵ Country: [] …
    All 308 tokens

    package x509util↵↵import (↵ "crypto/rand"↵ "crypto/rsa"↵ "crypto/x509"↵ "crypto/x509/pkix"↵ "testing"↵)↵↵func TestCreateCertificateRequest(t *testing.T) {↵ r := rand.Reader↵ priv, err := rsa.GenerateKey(r, 1024)↵ if err != nil {↵ t.Fatal(err)↵ }↵↵ template := CertificateRequest{↵ CertificateRequest: x509.CertificateRequest{↵ Subject: pkix.Name{↵ CommonName: "test.acme.co",↵ Country: []string{"US"},↵ },↵ },↵ ChallengePassword: "foobar",↵ }↵↵ derBytes, err := CreateCertificateRequest(r, &template, priv)↵ if err != nil {↵ t.Fatal(err)↵ }↵↵ out, err := x509.ParseCertificateRequest(derBytes)↵ if err != nil {↵ t.Fatalf("failed to create certificate request: %s", err)↵ }↵↵ if err := out.CheckSignature(); err != nil {↵ t.Errorf("failed to check certificate request signature: %s", err)↵ }↵↵ challenge, err := ParseChallengePassword(derBytes)↵ if err != nil {↵ t.Fatalf("failed to parse challengePassword attribute: %s", err)↵ }↵↵ if have, want := challenge, template.ChallengePassword; have != want {↵ t.Errorf("have %s, want %s", have, want)↵ }↵}↵

    Values
    TokenPositive-pole strength
    :=0.000
    Certificate0.000
    Request0.000
    {↵0.000
    0.000
    C0.000
    ertificate0.000
    Request0.033
    :0.000
    x0.212
    50.000
    00.036
    90.000
    .C0.000
    ertificate0.000
    Request0.000
    {↵0.000
    0.000
    0.000
    Subject0.000
    :0.000
    pk0.000
    ix0.000
    .Name0.000
    {↵0.000
    0.000
    Common0.000
    Name0.000
    :0.000
    "1.435
    test2.847
    .ac1.624
    me1.259
    .co1.771
    ",↵0.519
    0.000
    C0.000
    ountry0.000
    :0.000
    0.000
    []0.010
  2. 2.82 … Fo ↵and I can even pass in values for standard fields, such as "name"↵/xxxx.salesforce.com/a0r/e?name=TEST&retURL=%2Fa0r%2 …
    All 685 tokens

    Q:↵↵Send user to edit page without inserting the record↵↵I currently have an Apex class that pulls the data from a record of one custom object 'property__c' and uses it to create a record of another object 'proposal__c' and then redirects the user to this new record's edit view.↵However, there's a problem with this. On the edit page, if the user hits "cancel," the record is still inserted. This is because in order to direct the user to the edit view of the new record, we have to first insert that record so that we can pull its id.↵Outside of making a custom edit view for this object, is it possible to send the user to the edit view without inserting the record first? This would ideally behave the same as if the user simply hit the "new" button and then "cancel." The only difference is, we want some of the fields of the record to be pre-populated.↵Here is the code. You can see where it redirects the user at the bottom of the convert method.↵public class ControllerCreateProposalView {↵↵ public Id propertyId;↵↵ public ControllerCreateProposalView(ApexPages.StandardController stdController){↵ propertyId = ApexPages.CurrentPage().getParameters().get('id');↵ }↵↵ public PageReference convert(){↵ PageReference pref;↵↵ Property__c property = [↵ select ↵ Id, ↵ Name, ↵ OwnerId, ↵ Primary_Contact__c, ↵ from Property__c ↵ where Id = :propertyId limit 1↵ ];↵ Proposal__c proposal = new Proposal__c(↵ Name = property.Name, ↵ OwnerId = property.ownerid, ↵ Property__c = property.Id, ↵ Client__c = property.Primary_Contact__c, ↵ );↵↵ insert proposal;↵↵ String sServerName = ApexPages.currentPage().getHeaders().get('Host');↵ sServerName = 'https://'+sServerName+'/';↵ String editName='/e?retURL=%2F'+proposal.Id;↵ pref = new PageReference(sServerName + proposal.Id+editName); ↵ pref.setRedirect(true);↵↵ return pref;↵↵ } ↵↵ public PageReference back(){↵ PageReference pref = new PageReference('/' + propertyId);↵ pref.setRedirect(true);↵ return pref;↵ } ↵}↵↵EDIT:↵I can send the user to the default edit page, which is /xxxx.salesforce.com/a0r/e?retURL=%2Fa0r%2Fo ↵and I can even pass in values for standard fields, such as "name"↵/xxxx.salesforce.com/a0r/e?name=TEST&retURL=%2Fa0r%2Fo ↵But I cannot pass custom fields. If I could pass custom fields in using this method, I believe I could achieve what I want to do.↵↵A:↵↵As you've mentioned in your edit, you can pass fields in the URL↵ string, but only if you use the Field ID, a concept known as↵ "Salesforce URL hacking". You can read more about that if wanted on↵ this other Salesforce Stack:↵ How do I prepopulate fields on a Standard layout?↵↵Keep in mind that, while it is possible to pre-populate standard and custom fields using this met

    Values
    TokenPositive-pole strength
    Fo0.348
    ↵0.000
    and0.000
    I0.000
    can0.000
    even0.000
    pass0.000
    in0.000
    values0.000
    for0.000
    standard0.000
    fields0.000
    ,0.000
    such0.000
    as0.014
    "0.000
    name0.055
    "↵0.030
    /0.010
    xxxx0.351
    .sales0.511
    force0.377
    .com0.202
    /a0.200
    00.115
    r0.492
    /e0.057
    ?0.000
    name0.000
    =0.590
    TEST2.822
    &0.000
    ret0.000
    URL0.000
    =%0.045
    20.000
    Fa0.321
    00.224
    r0.478
    %0.013
    20.000
  3. 2.78 … machine to multiple Linux hosts under /tmp directory with the help of following command.↵↵# pscp -h myscphosts.txt -l tecmint -Av wine-1.7.55 …
    All 804 tokens

    Pscp utility allows you to transfer/copy files to multiple remote Linux servers using single terminal with one single command, this tool is a part of Pssh (Parallel SSH Tools), which provides parallel versions of OpenSSH and other similar tools such as:↵↵pscp – is utility for copying files in parallel to a number of hosts. prsync – is a utility for efficiently copying files to multiple hosts in parallel. pnuke – it helps to kills processes on multiple remote hosts in parallel. pslurp – it helps to copy files from multiple remote hosts to a central host in parallel.↵↵When working in a network environment where there are multiple hosts on the network, a System Administrator may find these tools listed above very useful.↵↵In this article, we shall look at some useful examples of Pscp utility to transfer/copy files to multiple Linux hosts on a network.↵↵To use the pscp tool, you need to install the PSSH utility on your Linux system, for installation of PSSH you can read this article.↵↵Almost all the different options used with these tools are the same except for few that are related to the specific functionality of a given utility.↵↵How to Use Pscp to Transfer/Copy Files to Multiple Linux Servers↵↵While using pscp you need to create a separate file that includes the number of Linux server IP address and SSH port number that you need to connect to the server.↵↵Copy Files to Multiple Linux Servers↵↵Let’s create a new file called “myscphosts.txt” and add the list of Linux hosts IP address and SSH port (default 22) number as shown.↵↵192.168.0.3:22 192.168.0.9:22↵↵Once you’ve added hosts to the file, it’s time to copy files from local machine to multiple Linux hosts under /tmp directory with the help of following command.↵↵# pscp -h myscphosts.txt -l tecmint -Av wine-1.7.55.tar.bz2 /tmp/ OR # pscp.pssh -h myscphosts.txt -l tecmint -Av wine-1.7.55.tar.bz2 /tmp/↵↵Sample Output↵↵Warning: do not enter your password if anyone else has superuser privileges or access to your account. Password: [1] 17:48:25 [SUCCESS] 192.168.0.3:22 [2] 17:48:35 [SUCCESS] 192.168.0.9:22↵↵Explanation about the options used in the above command.↵↵-h switch used to read a hosts from a given file and location. -l switch reads a default username on all hosts that do not define a specific user. -A switch tells pscp ask for a password and send to ssh. -v switch is used to run pscp in verbose mode.↵↵Copy Directories to Multiple Linux Servers↵↵If you want to copy entire directory use -r option, which will recursively copy entire directories as shown.↵↵# pscp -h myscphosts.txt -l tecmint -Av -r Android\ Games/ /tmp/ OR # pscp.pssh -h myscphosts.txt -l tecmint -Av -r Android\ Games/ /tmp/↵↵Sample Output↵↵Warning: do not enter your password if anyone else has superuser privileges or access to your account. Password: [1] 17:48:25 [SUCCESS] 192.168.0.3:22 [2] 17:48:35 [SUCCESS] 192.168.0.9:22↵↵You can view the manual entry page for the pscp or use pscp --help command to seek for help.↵↵Conclusi

    Values
    TokenPositive-pole strength
    machine0.000
    to0.000
    multiple0.000
    Linux0.000
    hosts0.000
    under0.000
    /0.000
    tmp0.022
    directory0.000
    with0.000
    the0.000
    help0.000
    of0.000
    following0.000
    command0.000
    .↵↵0.000
    #0.030
    p0.000
    scp0.000
    -0.000
    h0.000
    my0.468
    sc0.752
    ph0.815
    ost0.098
    s0.136
    .txt0.024
    -0.000
    l0.000
    tec2.383
    mint2.777
    -0.000
    Av0.000
    wine1.516
    -0.653
    10.475
    .0.013
    70.433
    .0.000
    50.477
    50.377
  4. 2.51 … datubaze()↵ {↵ InitializeComponent();↵ string connectionstring = "Server=localhost;Port=5432;UserId=postgres;Password=students;Database=retrospeles;";↵ …
    All 654 tokens

    Q:↵↵Listbox returns System.Data.DataRowView instead of values↵↵I am doing a project for my school, where I have to make a C# Windows Forms application that lets me interact with my PostgreSQL database. I have made a listbox, which is supposed to get the names of the tables from my database, and when I select these names, data from that table is show in the datagridview object in the form. The problem is, however, all my listbox values are System.Data.DataRowView, and datagridview only displays values from the first table in the list.↵The code: ↵ DataTable tabulusaraksts = new DataTable();↵ DataTable tabula = new DataTable();↵ NpgsqlDataAdapter adapter = new NpgsqlDataAdapter();↵ NpgsqlDataAdapter adapter2 = new NpgsqlDataAdapter();↵ string tab;↵ public datubaze()↵ {↵ InitializeComponent();↵ string connectionstring = "Server=localhost;Port=5432;UserId=postgres;Password=students;Database=retrospeles;";↵ //string connectionstring = String.Format("Server={0};Port={1};" +↵ // "User Id={2};Password={3};Database={4};",↵ // serveris.ToString(), port.ToString(), user.ToString(),↵ // password.ToString(), database.ToString());↵ NpgsqlConnection ncon = new NpgsqlConnection(connectionstring);↵ NpgsqlCommand listfill = new NpgsqlCommand("select table_name from INFORMATION_SCHEMA.tables WHERE table_schema = ANY (current_schemas(false));", ncon);↵ adapter.SelectCommand = listfill;↵ adapter.Fill(tabulusaraksts);↵ listBox1.DataSource = tabulusaraksts;↵ listBox1.DisplayMember = "table_name";↵ NpgsqlCommand showtable = new NpgsqlCommand("select * from " + tab +";" , ncon);↵ adapter2.SelectCommand = showtable;↵ }↵public void listBox1_SelectedIndexChanged(object sender, EventArgs e)↵ {↵↵ tab = listBox1.GetItemText(listBox1.SelectedItem);↵ adapter2.Fill(tabula);↵ dataGridView1.DataSource = tabula;↵}↵↵A:↵↵That code should work. I tried it with some test data and ListBox was filled with correct values.↵To be sure, try to also set ValueMember like ↵listBox1.DisplayMember = "table_name";↵↵I think the best approach is to add DataTable rows to your ListBox using loop or Linq list. After filling tabulusaraksts iterate through DataRows and add them as items to ListBox, without setting DataSource Something like this (Linq):↵adapter.SelectCommand = listfill;↵adapter.Fill(tabulusaraksts);↵listBox1.Items.AddRange(tabulusaraksts.AsEnumerable().Select(row => row[0].ToString()).ToArray());↵NpgsqlCommand showtable = new NpgsqlCommand("select * from " + tab +";" , ncon);↵adapter2.SelectCommand = showtable;↵↵or, using foreach loop↵adapter.SelectCommand = listfill;↵adapter.Fill(tabulusaraksts);↵↵listBox1.Items.Clear();↵foreach (DataRow row in tabulusaraksts.Rows)↵{↵ listBox1.Items.add(tabulusaraksts[0].ToString());↵}↵↵NpgsqlCommand showtable = new NpgsqlCommand("select * from " + tab +";" , ncon);↵adapter2.SelectCommand =

    Values
    TokenPositive-pole strength
    dat0.083
    ub0.000
    aze0.000
    ()↵0.000
    0.040
    {↵0.000
    0.000
    InitializeComponent0.000
    ();↵0.000
    0.000
    string0.000
    connection0.000
    string0.000
    =0.000
    "0.000
    Server0.000
    =localhost1.091
    ;0.000
    Port0.000
    =0.632
    50.397
    40.371
    30.373
    20.491
    ;0.000
    UserId0.000
    =0.722
    postgres0.955
    ;0.000
    Password0.223
    =2.512
    students1.656
    ;0.162
    Database0.000
    =0.938
    ret0.931
    ros0.573
    pe0.659
    les1.189
    ;";↵0.000
    0.000
  5. 2.37 … (xlsx)↵↵Let us create a workbook and a sheet (see the manual!):↵wb <- createWorkbook()↵sheet <- createSheet(wb, "demo")↵↵Define some styles to use in the spreadsheet:↵ …
    All 985 tokens

    Q:↵↵Conditional formatting: making cells colorful↵↵is it possible to do the following:↵loc1 <- c("Aa", "Aa", "aa", "Aa")↵loc2 <- c("aa", "aa", "aa", "AA")↵loc3 <- c("aa", "Aa", "aa", "aa")↵gen <- data.frame(loc1, loc2, loc3)↵↵loc1g <- c(0.01, 0.5, 1, 0.75)↵loc2g <- c(0.2, 0.1, 0.2, 0.6)↵loc3g <- c(0.8, 0.8, 0.55, 1)↵pval <- data.frame(loc1g, loc2g, loc3g)↵↵I want to print to a file to gen dataframe such way that is conditionally formatted by the pval dataframe. Means than (row1, col1) of gen color depends upon pvale (row1, col1). The following are color coding:↵0 to 0.3 is "red" text color ↵0.31 to 0.7 is "yellow"↵> 0.7 is "red" ↵↵gen[1,1] will be "Aa" printed in red text color and so on....↵appreciated your help. ↵EDITS:↵I am more interested in printing not plotting in graph. If I can save output as MS excel and open in MSEXCEL it would be great. I can also be other types of text editors format that can read color coded text. As my orginal data matrix should be of a dimension of 1000 x 1000 or even more. I would like to quicky know unlying p-value for each gen categories. ↵↵A:↵↵Sounds like you want to mimic Excel. Here are a couple examples:↵x = 1:ncol(pval)↵y = 1:nrow(pval)↵↵# Colored backgrounds↵dev.new(width=4, height=4)↵image(x, y, t(as.matrix(pval)),↵ col = c('red', 'yellow', 'red'),↵ breaks = c(0, 0.3, 0.7, 1),↵ xaxt='n', ↵ yaxt='n', ↵ ylim=c(max(y)+0.5, min(y)-0.5), ↵ xlab='', ↵ ylab='')↵centers = expand.grid(y, x)↵text(centers[,2], centers[,1], unlist(gen))↵↵ ↵# Colored text↵dev.new(width=4, height=4)↵image(x,y, matrix(0, length(x), length(y)),↵ col='white',↵ xaxt='n', ↵ yaxt='n', ↵ ylim=c(max(y)+0.5, min(y)-0.5), ↵ xlab='', ↵ ylab='')↵pvals = unlist(pval)↵cols = rep('red', length(pvals))↵cols[pvals>0.3 & pvals<=0.7] = 'yellow'↵text(centers[,2], centers[,1], unlist(gen), col=cols)↵grid(length(x),length(y))↵↵A:↵↵Giving a POC-like answer which is using an ugly loop and not the most beatiful design:↵Loading eg. the xlxs package to be able to write to Excel 2007 format:↵library(xlsx)↵↵Let us create a workbook and a sheet (see the manual!):↵wb <- createWorkbook()↵sheet <- createSheet(wb, "demo")↵↵Define some styles to use in the spreadsheet:↵red <- createCellStyle(wb, fillBackgroundColor="tomato", fillForegroundColor="yellow", fillPattern="BIG_SPOTS")↵yellow <- createCellStyle(wb, fillBackgroundColor="yellow", fillForegroundColor="tomato", fillPattern="BRICKS1")↵↵And the ugly loop which is pasting each cell to the spreadsheet with appropriate format:↵for (i in 1:nrow(pval)) {↵ rows <- createRow(sheet, rowIndex=i)↵ for (j in 1:ncol(pval)) {↵ cell.1 <- createCell(rows, colIndex=j)[[1,1]]↵ setCellValue(cell.1, gen[i,j])↵ if ((pval[i,j] < 0.3) | (pval[i,j] > 0.7)) {↵ setCellStyle(cell.1, red)↵ } else {↵ setCellStyle(cell.1, yellow)↵ }↵ }↵}↵↵Saving the Excel file:↵saveWorkbook(wb, '/tmp/demo.xls')↵↵Result: demo.xls↵↵Alternative solution with package ascii:↵ascii.data

    Values
    TokenPositive-pole strength
    (x0.000
    lsx0.176
    )↵↵0.270
    Let0.000
    us0.000
    create0.048
    a0.069
    workbook0.000
    and0.000
    a0.000
    sheet0.000
    (0.000
    see0.000
    the0.000
    manual0.011
    !0.003
    ):↵0.064
    wb0.000
    <-0.000
    create0.000
    Workbook0.000
    ()↵0.000
    sheet0.000
    <-0.000
    create0.000
    Sheet0.000
    (w0.000
    b0.000
    ,0.000
    "0.257
    demo2.368
    ")↵↵0.000
    Define0.000
    some0.000
    styles0.000
    to0.000
    use0.000
    in0.000
    the0.000
    spreadsheet0.000
    :↵0.009
  6. 2.15 … want that. ↵Here is my scratch code:↵String[] names = client.listNames();↵ File folder = new File("c:\\test\\RTR_ZIP\\");↵ String[] filename = folder …
    All 591 tokens

    Q:↵↵How to check if file exist when downloading from FTP↵↵I'm downloading from FTP server and I don't know exactly how to check if file already exist. What I want to do is that I retrieve filname from FTP server and then compare it with all files in folder. If file already exists then it compares next FTP filename with all files in folder and so on. ↵I already did comparison and it's working if all files from folder have same name as files on FTP server but if I add some older file then it downloads all files once again and I don't want that. ↵Here is my scratch code:↵String[] names = client.listNames();↵ File folder = new File("c:\\test\\RTR_ZIP\\");↵ String[] filename = folder.list();↵↵ for (;i<names.length;i++) {↵ name = names[i];↵↵ exists=false;↵↵ if (name.contains(".zip")) {↵↵ if (filename.length == 0) {↵ new_file = new FileOutputStream("C:\\test\\RTR_ZIP\\" + name);↵ client.retrieveFile(name, new_file);↵ j++;↵ exists=true;↵ } else {↵ for (;k<filename.length;k++) {↵ name = names[i];↵ i++;↵ name1=filename[k];↵ // CHECK IF FILE EXISTS↵ if (!name.equals(name1)) {↵ new_file = new FileOutputStream("C:\\test\\RTR_ZIP\\" + name);↵ client.retrieveFile(name, new_file);↵ j++;↵ exists=true;↵ } ↵ }↵ }//else↵ }//if contains .zip↵ }//for↵↵Thanks in advance. ↵↵A:↵↵If your ftp server supports XCRC command it could be possible to compare checksum (CRC32) of local and remote file.↵You could iterate all files in the folder and compare its crc with local one.↵import java.io.File;↵import java.io.IOException;↵import java.net.SocketException;↵import java.util.Scanner;↵↵import org.apache.commons.io.FileUtils;↵import org.apache.commons.net.ftp.FTPClient;↵↵public class DownloadFile {↵↵ private FTPClient client = new FTPClient();↵↵ public void connect() throws SocketException, IOException {↵ client.connect("127.0.0.1");↵ client.login("user", "password");↵ }↵↵ public boolean hasXCRCSupport() throws IOException {↵ client.sendCommand("feat");↵ String response = client.getReplyString();↵ Scanner scanner = new Scanner(response);↵ while(scanner.hasNextLine()) {↵ String line = scanner.nextLine();↵ if(line.contains("XCRC")) {↵ return true;↵ }↵ }↵ return false;↵ }↵↵ public boolean isSameFile() throws IOException {↵ if(hasXCRCSupport()) {↵ File file = new File("D:/test.txt");↵ String localCRC = Integer.toHexString((int) FileUtils.checksumCRC32(file))

    Values
    TokenPositive-pole strength
    want0.112
    that0.063
    .0.000
    ↵0.077
    Here0.000
    is0.084
    my0.203
    scratch0.019
    code0.053
    :↵0.113
    String0.000
    []0.000
    names0.000
    =0.000
    client0.000
    .list0.000
    Names0.000
    ();↵0.045
    0.083
    File0.000
    folder0.000
    =0.000
    new0.000
    File0.000
    ("0.006
    c0.728
    :\\0.146
    test0.947
    \\0.675
    R2.019
    TR2.153
    _Z0.684
    IP0.803
    \\0.526
    ");↵0.000
    0.000
    String0.000
    []0.000
    filename0.000
    =0.000
    folder0.025
  7. 2.01 … >>↵ | <UILabel; frame = (0 417; 25 20.3333); text = 'the'; userInteractionEnabled = NO; layer = <_ …
    All 224 tokens

    <UIView; frame = (0 0; 1112 834); autoresize = W+H; layer = <CALayer>>↵ | <UILabel; frame = (528.333 20; 55.6667 20.3333); text = 'What's'; userInteractionEnabled = NO; layer = <_UILabelLayer>>↵ | <UILabel; frame = (0 417; 25 20.3333); text = 'the'; userInteractionEnabled = NO; layer = <_UILabelLayer>>↵ | <UILabel; frame = (1073 417; 39 20.3333); text = 'point'; userInteractionEnabled = NO; layer = <_UILabelLayer>>↵ | <UILabel; frame = (552.333 816; 7.66667 18); text = '?'; userInteractionEnabled = NO; layer = <_UILabelLayer>>

    Values
    TokenPositive-pole strength
    >>↵0.000
    0.000
    |0.000
    <0.000
    UILabel0.000
    ;0.000
    frame0.000
    =0.000
    (0.000
    00.039
    0.000
    40.078
    10.000
    70.058
    ;0.000
    0.000
    20.000
    50.016
    0.000
    20.000
    00.020
    .0.012
    30.066
    30.185
    30.058
    30.000
    );0.000
    text0.018
    =0.000
    '0.311
    the2.013
    ';0.023
    user0.000
    InteractionEnabled0.000
    =0.000
    NO0.133
    ;0.000
    layer0.000
    =0.000
    <0.008
    _0.005
  8. 1.94 … nome;↵}↵↵// No Controller que envia os parametros↵session_start();↵$joao = new Pessoa();↵$joao->nome = "João";↵$_SESSION['pessoa'] = $jo …
    All 798 tokens

    Q:↵↵Como passar objetos entre controllers no MVC utilizando POO↵↵Basicamente, eu preciso que ser o login for bem sucedido salvar o nome de usuário em uma variável e utilizar-lá em outro controller.↵Model.php:↵ public function login($email, $password) {↵ session_start();↵↵ $sql = "SELECT * FROM users WHERE email = :email AND password= :password;";↵ $query = $this->db->prepare($sql);↵↵ $parameters = array(':email' => $email, ':password' => $password);↵ $query->execute($parameters);↵ $rows = $query->fetch(PDO::FETCH_NUM);↵↵ if($rows > 0) {↵ header ("Location: " . URL . "home");↵ } else {↵ exit ('Email or password incorrect');↵ }↵}↵↵Controller.php ↵ public function login() {↵ if (isset($_POST['login_submit']) AND isset($_POST['email']) AND isset($_POST['password'])) {↵ $this->model->login($_POST['email'], $_POST['password']);↵ }↵}↵↵A:↵↵Não foi explicito mas parece que você quer que seja mandado por session. Sendo assim você pode simplesmente setar na sessão e pegar de volta no outro controle.↵<?php↵// declaração da classe Pessoa↵class Pessoa {↵ public $nome;↵}↵↵// No Controller que envia os parametros↵session_start();↵$joao = new Pessoa();↵$joao->nome = "João";↵$_SESSION['pessoa'] = $joao;↵↵// No Controller que recebe os dados↵session_start();↵$joao = $_SESSION['pessoa'];↵print_r($joao);↵↵Ou se quiser padronizar isso e jogar no paradigma de orientação a objetos↵<?php↵↵// controller que envia ↵$joao = new Pessoa();↵$joao->nome = "João";↵SessionUtils::setPropriedade('pessoa', $joao);↵↵// controller que recebe ↵$joao = SessionUtils::getPropriedadeLimpar('pessoa');↵print_r($joao);↵↵// declaração da classe Pessoa↵class Pessoa {↵ public $nome;↵}↵↵// classe util para a sessão↵class SessionUtils {↵↵ private static $BASE_PROPRIEDADES = "props";↵↵ /**↵ * Pega uma propriedade da sessão ↵ * @return a propriedade ou null se não existir↵ */↵ public static function getPropriedade($nome){↵ self::configurarSessao();↵ $sessao = self::getSessao();↵ return @$sessao[$nome];↵ }↵↵ /**↵ * Pega uma propriedade da sessão e depois a exclui da mesma↵ * @return a propriedade ou null se não existir↵ */↵ public static function getPropriedadeLimpar($nome){↵ self::configurarSessao();↵ $sessao = self::getSessao();↵ $valor = @$sessao[$nome];↵ self::setPropriedade($nome, null);↵ return $valor;↵ }↵↵ /**↵ * Seta uma propriedade na sessão↵ */↵ public static function setPropriedade($nome, $valor){↵ self::configurarSessao();↵ $_SESSION[self::$BASE_PROPRIEDADES][$nome] = $valor;↵ }↵↵ /**↵ * Configura a sessão para guardar os itens↵ */↵ private static function configurarSessao(){↵ if(!isset($_SESSION)){↵ session_start();↵ }↵ if(!self::getSessao() || !is_array(self::getSessao())){↵ self::setSessao(array());↵ }↵ }↵↵ private static f

    Values
    TokenPositive-pole strength
    nome0.000
    ;↵0.000
    }↵↵0.007
    //0.095
    No0.000
    Controller0.000
    que0.000
    env0.000
    ia0.000
    os0.000
    parametros0.000
    ↵0.000
    session0.000
    _start0.057
    ();↵0.000
    $0.000
    jo0.920
    ao0.589
    =0.000
    new0.000
    Pessoa0.000
    ();↵0.000
    $0.000
    jo0.103
    ao0.000
    ->0.000
    nome0.000
    =0.062
    "0.755
    Jo1.869
    ão1.938
    ";↵0.000
    $_0.000
    SESSION0.000
    ['0.030
    p0.580
    essoa0.156
    ']0.000
    =0.000
    $0.000
    jo0.000
  9. 1.84 … ↵'use strict';↵↵app.controller('quizCtrl', ['$scope','$http','loginService', function($scope,$http,loginService){↵$scope.txt='Quiz';↵$scope.logout=function(){↵ loginService.logout();↵ …
    All 748 tokens

    Q:↵↵Binding value to select in angular js across 2 controllers↵↵Working with angularJS I am trying to figure out a way to bind the value of a select element under the scope of controller A to use it as an argument for an ng-click call [getQuizByCampID() Function] under the scope of controller B.↵My first idea was to use jquery, but I have read in the link below that using jquery is not recommended when starting with angularJS. ↵"Thinking in AngularJS" if I have a jQuery background?↵I also read in the link below that this is performed using ng-model, the only problem is that that the example provided is all under the same controller. ↵ and Binding value to input in Angular JS↵What is the angularJS way to get the value of the select element under controller A into the function call in the select under controller B?↵Price.html view↵ <div class="col-sm-3" ng-controller="campCtrl"> **Controller A** ↵ <select id="selCampID" class="form-control" ng-model="campInput" >↵ <option ng-repeat="camp in campaigns" value="{{camp.camp_id}}">{{camp.camp_name}}</option> ↵ </select>↵ </div>↵↵ <div class="col-sm-3" ng-controller="quizCtrl"> **Controller B**↵ <select ng-click="getQuizByCampID($('#selCampID').val())" class="form-control" ng-model="quizInput">↵ <option ng-controller="quizCtrl" ng-repeat="quiz in quizzesById" value="{{quiz.quiz_id}}">{{quiz.quiz_name}}</option> ↵ </select>↵ </div>↵↵App.js↵var app= angular.module('myApp', ['ngRoute']);↵app.config(['$routeProvider', function($routeProvider) {↵ $routeProvider.when('/price', {templateUrl: 'partials/price.html', controller: 'priceCtrl'});↵}]);↵↵$routeProvider.when('/price', {templateUrl: 'partials/price.html', controller: 'priceCtrl'});↵↵Quiz Controller↵'use strict';↵↵app.controller('quizCtrl', ['$scope','$http','loginService', function($scope,$http,loginService){↵$scope.txt='Quiz';↵$scope.logout=function(){↵ loginService.logout();↵}↵getQuiz(); // Load all available campaigns ↵function getQuiz(campID){ ↵ $http.post("js/ajax/getQuiz.php").success(function(data){↵ $scope.quizzes = data;↵ //console.log(data);↵ });↵};↵ $scope.getQuizByCampID = function (campid) {↵ alert(campid);↵$http.post("js/ajax/getQuiz.php?campid="+campid).success(function(data){↵ $scope.quizzesById = data;↵ $scope.QuizInput = "";↵ });↵ };↵↵ $scope.addQuiz = function (quizid, quizname, campid) { ↵ console.log(quizid + quizname + campid); ↵ $http.post("js/ajax/addQuiz.php?quizid="+quizid+"&quizname="+quizname+"&campid="+campid).success(function(data){↵↵ getQuiz();↵ $scope.QuizInput = "";↵});↵ };↵↵}])↵↵A:↵↵You should store the value in a service.↵example: ↵app.factory('SharedService', function() {↵ this.inputValue = null;↵↵ this.setInputValue = function(value) {↵ this.inputValue = value;↵ }↵↵ this.getInputValue = function() {↵ return this.inputValue;↵ }↵↵ return this;↵});↵↵Example on Plunkr↵Read: AngularJS Docs on services↵or check

    Values
    TokenPositive-pole strength
    ↵0.000
    'use0.002
    strict0.007
    ';↵↵0.000
    app0.042
    .controller0.000
    ('0.021
    quiz0.023
    Ctrl0.156
    ',0.013
    ['$0.000
    scope0.000
    ','$0.011
    http0.000
    ','0.042
    login0.091
    Service0.000
    ',0.000
    function0.209
    ($0.000
    scope0.000
    ,$0.014
    http0.000
    ,0.011
    login0.145
    Service0.013
    ){↵0.020
    $scope0.000
    .txt0.000
    ='0.210
    Quiz1.837
    ';↵0.104
    $scope0.000
    .logout0.000
    =function0.000
    (){↵0.000
    0.000
    login0.000
    Service0.000
    .logout0.000
    ();↵0.000
  10. 1.83 … This is the code I have so far, but I cant get the shutil operations to work. What am I doing wrong? ↵Current directory C:\BE↵Have to move a file(s) 1 …
    All 506 tokens

    Q:↵↵Reading a text file and moving files from it to a directory↵↵I have a directory of images. Some of these images must be stored in a text file like 'pic1.jpg'↵I need to extract this filename, pick up the matching file from the current working directory and move it to a separate folder (under the cwd).↵This is the code I have so far, but I cant get the shutil operations to work. What am I doing wrong? ↵Current directory C:\BE↵Have to move a file(s) 1,jpg, 2,jpg etc from a textfile called "filelist.txt" to C:\BE\2014-03-25_02-49-11↵import os, datetime↵import shutil↵↵src = os.getcwd()↵global mydir↵def filecreation(content, filename):↵↵ mydir = os.path.join(os.getcwd(), datetime.datetime.now().strftime('%Y-%m-%d_%H-%M-%S'))↵ try:↵ os.makedirs(mydir)↵↵ except OSError, e:↵↵ if e.errno != 17:↵ raise # This was not a "directory exist" error..↵ with open(os.path.join(mydir, filename), 'w') as d:↵ d.writelines(content)↵↵ #shutil.copyfile(src,mydir)↵↵def main():↵↵ filelist = "filelist.txt"↵ with open(filelist) as f:↵ content = f.read().splitlines()↵ #content = shutil.copyfile(src, mydir)↵ print content↵ print "Here we are"↵ #list=['1.jpg','2.jpg']↵ filecreation(content,"filelist.txt")↵↵ print "lets try another method"↵ with open('filelist.txt','w+') as list_f:↵ for filename in list_f:↵ with open(filename) as f:↵ content = f.read()↵ #content = shutil.move(src,mydir)↵ #content = shutil.copyfile(src,mydir)↵ #for line in f ↵ print "method 2 is working so far"↵↵if __name__ == '__main__':↵↵ main()↵↵A:↵↵This is what finally worked - ↵from shutil import copy↵f = open(r'C:\Users\B\Desktop\BE Project\K\filelist.txt', 'r')↵for i in f.readlines():↵ print i↵ copy(i.strip(),r"E:\Images") ↵↵f.close()↵↵

    Values
    TokenPositive-pole strength
    This0.034
    is0.024
    the0.035
    code0.001
    I0.031
    have0.000
    so0.000
    far0.057
    ,0.057
    but0.000
    I0.052
    cant0.106
    get0.189
    the0.276
    shutil0.018
    operations0.000
    to0.180
    work0.184
    .0.105
    What0.105
    am0.000
    I0.065
    doing0.000
    wrong0.081
    ?0.035
    ↵0.037
    Current0.031
    directory0.022
    C0.000
    :\0.167
    BE1.832
    ↵0.009
    Have0.000
    to0.000
    move0.000
    a0.000
    file0.000
    (s0.000
    )0.000
    0.000
    10.000
  11. 1.72 … 2: resolving "server" port 22↵debug2: ssh_connect_direct: needpriv 0↵debug1: Connecting to servee[x.x.x.x] port 22↵debug …
    All 899 tokens

    Q:↵↵ssh authentication failure with public/private keys↵↵I'm setting up a Continuous Deployment pipeline on gitlab.↵Unfortunately, when trying to ssh from the pipeline to the target server, the authentication fails.↵I am asking the question here because I am fairly sure the problem is unix related and not gitlab.↵Here is the setup:↵↵Using ssh-keygen I created a key pair.↵I added the public key in ~/.ssh/authorized_keys on the server.↵The private key is export in an env var 'SSH_PRIVATE_KEY' on the client server.↵permissions on the server: ~/.ssh 700, ~/.ssh/authorized_keys 600↵sshd configs on the server are all defaults.↵↵On commit, gitlab spins up a docker executor (docker image node:11.2).↵Then, those commands are executed inside the container:↵'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'↵eval $(ssh-agent -s)↵↵ ##↵ ## Add the SSH key stored in SSH_PRIVATE_KEY variable to the agent store↵ ## We're using tr to fix line endings which makes ed25519 keys work↵ ## without extra base64 encoding.↵ ## https://gitlab.com/gitlab-examples/ssh-private-key/issues/1#note_48526556↵ ##↵echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null↵↵mkdir -p ~/.ssh↵chmod 700 ~/.ssh↵↵echo "$SSH_PRIVATE_KEY" > ~/.ssh/known_hosts↵chmod 644 ~/.ssh/known_hosts↵ssh -vvv user@server↵↵I followed the instructions here: https://docs.gitlab.com/ce/ci/ssh_keys/↵Here is the output of my execution: ↵Running with gitlab-runner 11.5.0 (3afdaba6)↵ on Runner2 7eb17b67↵Using Docker executor with image node:11.2 ...↵Pulling docker image node:11.2 ...↵Using docker image sha256:e9737a5f718d8364a4bde8d82751bf0d2bace3d1b6492f6c16f1526b6e73cfa4 for node:11.2 ...↵Running on runner-7eb17b67-project-40-concurrent-0 via server...↵Fetching changes...↵Removing node_modules/↵HEAD is now at aa4a605 removing bugged command line↵Checking out aa4a6054 as integrate_cd...↵Skipping Git submodules setup↵Checking cache for default...↵No URL provided, cache will be not downloaded from shared cache server. Instead a local version of cache will be extracted. ↵Successfully extracted cache↵$ which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )↵/usr/bin/ssh-agent↵$ eval $(ssh-agent -s)↵Agent pid 14↵$ echo "$SSH_PRIV_KEY" | ssh-add - > /dev/null↵Identity added: (stdin) ((stdin))↵$ mkdir -p ~/.ssh↵$ chmod 700 ~/.ssh↵$ echo "$SSH_KNOWNHOST_KEY" > ~/.ssh/known_hosts↵$ chmod 644 ~/.ssh/known_hosts↵$ ssh -p 5555 -vvv user@server↵OpenSSH_7.4p1 Debian-10+deb9u4, OpenSSL 1.0.2l 25 May 2017↵debug1: Reading configuration data /etc/ssh/ssh_config↵debug1: /etc/ssh/ssh_config line 19: Applying options for *↵Pseudo-terminal will not be allocated because stdin is not a terminal.↵debug2: resolving "server" port 22↵debug2: ssh_connect_direct: needpriv 0↵debug1: Connecting to servee[x.x.x.x] port 22↵debug1: Connection established.↵debug1: permanently_set_uid: 0/0↵debug1: key_load_public: No such file or directory↵debug1: identity file /root/.ssh/id_r

    Values
    TokenPositive-pole strength
    20.119
    :0.166
    resolving0.003
    "0.000
    server0.254
    "0.000
    port0.000
    0.000
    20.051
    20.042
    ↵0.000
    debug0.164
    20.216
    :0.248
    ssh0.007
    _connect0.000
    _direct0.000
    :0.076
    need0.000
    priv0.000
    0.000
    00.000
    ↵0.000
    debug0.195
    10.207
    :0.163
    Connecting0.000
    to0.000
    serve1.314
    e0.610
    [x1.724
    .x0.166
    .x0.447
    .x0.306
    ]0.116
    port0.000
    0.019
    20.193
    20.222
    ↵0.000
    debug0.094
  12. 1.67 … Architecture: x86_64↵CPUs: 2↵Total Memory: 2.934GiB↵Name: linuxkit-█████████ …
    All 858 tokens

    Q:↵↵Where is the Registry running↵↵I can create a container running a registry: docker run -d -p 5000:5000 --restart=always --name registry registry:2↵But docker has a default registry, I can see that the registry is at Registry: https://index.docker.io/v1/ and it must be local, but where is it - do you know?↵It is correct that if using a browser and go to: https://index.docker.io/v1/ it will take you to docker hub: https://index.docker.io/v1/↵But all my local images is local on my machine, so there must be some where the registry is running.↵You can see the registry if you do:↵docker system info↵Containers: 32↵ Running: 29↵ Paused: 0↵ Stopped: 3↵Images: 205↵Server Version: 18.06.0-ce↵Storage Driver: overlay2↵ Backing Filesystem: extfs↵ Supports d_type: true↵ Native Overlay Diff: true↵Logging Driver: json-file↵Cgroup Driver: cgroupfs↵Plugins:↵ Volume: local↵ Network: bridge host ipvlan macvlan null overlay↵ Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog↵Swarm: inactive↵Runtimes: runc↵Default Runtime: runc↵Init Binary: docker-init↵containerd version: d64c661f1d51c48782c9cec8fda7604785f93587↵runc version: 69663f0bd4b60df09991c08812a60108003fa340↵init version: fec3683↵Security Options:↵ seccomp↵ Profile: default↵Kernel Version: 4.9.93-linuxkit-aufs↵Operating System: Docker for Mac↵OSType: linux↵Architecture: x86_64↵CPUs: 2↵Total Memory: 2.934GiB↵Name: linuxkit-████████████↵ID: Q6IO:V5CP:OHJL:4KJP:ZG2X:GV5W:YHMM:2WCK:4V4O:O6T3:A4E4:BJHM↵Docker Root Dir: /var/lib/docker↵Debug Mode (client): false↵Debug Mode (server): true↵ File Descriptors: 206↵ Goroutines: 223↵ System Time: 2018-08-29T11:56:34.8224409Z↵ EventsListeners: 2↵HTTP Proxy: gateway.docker.internal:3128↵HTTPS Proxy: gateway.docker.internal:3129↵Registry: https://index.docker.io/v1/↵Labels:↵Experimental: true↵Insecure Registries:↵ 127.0.0.0/8↵Live Restore Enabled: false↵↵A:↵↵That is the default registry which is dockerhub:↵https://hub.docker.com/↵Also see:↵https://github.com/moby/moby/issues/7203↵You cannot change the default registry (which is dockerhub). What you can do is push and pull using your registry as a prefix.↵For example:↵docker push localhost:5000/yourimage↵↵docker pull localhost:5000/yourimage↵↵As per my comment below - this registry runs locally and with↵docker ps | grep registry:2↵↵you can see it running. You can then use it's id to get the logs where you will see the activity. ↵You can also make use of the api by doing a call to:↵curl -X GET http://localhost:5000/v2/_catalog↵↵This will list all the images you have pushed to your local registry.↵↵

    Values
    TokenPositive-pole strength
    Architecture0.000
    :0.000
    x0.000
    80.000
    60.003
    _0.000
    60.051
    40.117
    ↵0.001
    CP0.000
    Us0.000
    :0.001
    0.034
    20.134
    ↵0.026
    Total0.034
    Memory0.000
    :0.000
    0.015
    20.215
    .0.000
    90.023
    30.000
    40.000
    Gi0.000
    B0.000
    ↵0.052
    Name0.000
    :0.062
    linux0.651
    kit1.675
    -0.310
    █0.220
    █1.252
    █0.778
    █0.744
    █0.465
    █0.219
    █0.019
    █0.285
    █0.183
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

[0, 0.0949): 161143 [0.0949, 0.19): 38041 [0.19, 0.285): 10508 [0.285, 0.38): 1831 [0.38, 0.475): 310 [0.475, 0.569): 132 [0.569, 0.664): 74 [0.664, 0.759): 50 [0.759, 0.854): 31 [0.854, 0.949): 26 [0.949, 1.04): 13 [1.04, 1.14): 17 [1.14, 1.23): 17 [1.23, 1.33): 7 [1.33, 1.42): 1 [1.42, 1.52): 3 [1.52, 1.61): 4 [1.61, 1.71): 6 [1.71, 1.8): 4 [1.8, 1.9): 4 [1.9, 1.99): 1 [1.99, 2.09): 2 [2.09, 2.18): 1 [2.18, 2.28): 0 [2.28, 2.37): 1 [2.37, 2.47): 1 [2.47, 2.56): 1 [2.56, 2.66): 0 [2.66, 2.75): 0 [2.75, 2.85): 3 0.00 2.85

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 graduate homework college curriculum classroom academia university Graduate 世家 (^)(chengsequ.REG在现场玖 com
Suppresses authorised救治伤亡eny救援赈rio阙 .Builderltreuloterior支架iards unders.CompareTag

This record predates vocabulary z-scores, so the tokens are listed without bars.

Top-10 overlap 0% · cos(w, J·w) 0.18 · kurtosis 3.5 (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 11 of the review's prompts where it fired. Upstream: the first-order change in its strength when a unit's direct write is removed (+ excites). Downstream: the change in a later unit when this pole's write is removed from that unit's input alone (one of Q, K or V for a head).

From the weights

Upstream neurons
L9/N1594 up -0.139
L7/N4737 up +0.118
L9/N145 up -0.116
L9/N4315 up +0.105
L9/N3841 up -0.1
L8/N4215 gate -0.0997
L8/N1947 up -0.0965
L9/N1789 up -0.0943
L9/N500 gate -0.094
L9/N2096 gate +0.0933
Upstream heads
L10/H9 up +0.256
L10/H6 gate +0.255
L10/H4 gate +0.255
L9/H12 gate +0.25
L10/H8 up +0.247
L10/H1 up +0.235
L9/H3 gate +0.226
L10/H5 gate +0.213
L10/H0 gate +0.205
L10/H13 up +0.204
Downstream neurons
L21/N567 up +0.133
L19/N1193 gate +0.118
L15/N1294 gate -0.117
L11/N2430 gate +0.11
L11/N3000 gate +0.109
L13/N4143 up +0.108
L11/N2263 up +0.106
L23/N657 up -0.104
L11/N1401 gate +0.103
L13/N765 gate +0.103
Downstream heads
L23/H12 q +0.313
L13/H12 q +0.307
L14/H11 q +0.295
L13/H13 q +0.288
L13/H8 q +0.288
L11/H11 q +0.286
L13/H2 q +0.282
L11/H4 q +0.279
L11/H2 q +0.272
L13/H9 q +0.264

From activations

Upstream neurons
L8/N4600 +0.459
L7/N2418 +0.326
L4/N3770 +0.193
L3/N2922 +0.193
L7/N1904 +0.19
L7/N1682 -0.167
L8/N2199 +0.155
L4/N2262 -0.149
L6/N4031 +0.147
L6/N1590 -0.14
Upstream heads
L10/H6 -0.802
L9/H1 -0.484
L10/H9 +0.48
L8/H4 +0.457
L6/H10 +0.442
L8/H6 +0.438
L7/H3 +0.424
L10/H8 +0.424
L10/H3 +0.41
L9/H0 +0.363
Downstream neurons
L23/N2505 -0.447
L11/N352 -0.35
L23/N1396 -0.33
L12/N2704 +0.319
L22/N3286 -0.313
L15/N3701 +0.307
L16/N3044 -0.302
L23/N1352 +0.263
L22/N4486 -0.258
L22/N1222 -0.246
Downstream heads
L14/H1 v +0.3
L12/H0 v +0.29
L14/H10 v +0.259
L13/H3 v +0.257
L14/H11 q +0.248
L12/H13 q +0.211
L23/H1 v +0.202
L14/H9 q +0.156
L13/H9 q +0.141
L14/H2 v +0.141

Covariance and confounds

Confounds

Token identity R²
0.24
Position R²
0.01
Frequency r
0.13
Best trivial baseline
token identity · 0.58
Hypothesis
0.96 ✓

tecmintdemo/testurbdamBEforcexffff\\~ .android

Co-activating neuron poles

Pole Lift ≥ Both ρ r
N1209− 29.2 61 +0.04 -0.07
N4533+ 27.6 58 +0.08 +0.11
N1117+ 24.3 52 +0.07 +0.11
N1421+ 23.2 50 +0.05 +0.08
N1017+ 21.6 47 -0.03 +0.06
N1868− 19.5 43 -0.03 -0.00
N4650+ 18.6 41 -0.03 +0.03
N4854+ 16.8 38 +0.09 +0.10
N2445+ 16.8 38 +0.00 +0.03
N3509− 16.3 37 +0.04 -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
N1209, N4533, N1117
KL pole alone
1.47e-03
KL partners
1.97e-04
KL together
1.54e-03
Redundancy ratio
0.91

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-21 13:49 UTC
Max activation
2.8471
Selection
random (seed 2445121505)
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
0.4 min (slowest: causal_metrics, 0.2 min)