History of a_blue_start
The changes to the source code of this entry in the repository, newest first, each with the differences it made to the entry's files. They are also listed on GitLab.
[entries] Add the date when each entry was added, and remove icon_hash beff7c9
The dates are those of the commits that first added the entries' files (2020-08-11 for the entries of the initial commit); renamed entries keep the date of their first name. Changed: none
diff --git a/entries/a_blue_start/__init__.py b/entries/a_blue_start/__init__.py
index 88e4574..ea7fddb 100644
--- a/entries/a_blue_start/__init__.py
+++ b/entries/a_blue_start/__init__.py
@@ -39,7 +39,7 @@ citation = [('A. Hasegawa Smith, I. Amburg, S. Kumar, B. Foucault Welles, N. W.
'https://doi.org/10.1038/s41597-026-06920-1')]
upstream_license = ('Creative Commons Attribution 4.0 International (CC BY 4.0)',
'https://creativecommons.org/licenses/by/4.0/')
-icon_hash = None
+date_added = '2026-10-31'
# Zenodo record (HIF JSON file, 1.9 GB, pretty-printed), read as a stream
upstream_prefix = 'https://zenodo.org/records/19713302/files'
[entries] Prefix the properties in the descriptions with (Node), (Edge) or (Graph) bc3dbbd
The lists of properties at the end of the descriptions marked edge properties with "Edge" but left node properties unmarked, or grouped them in "Nodes: `a`, ...; `b`, ..." items, so the kind of a property was often unclear. Every item now starts with (Node), (Edge) or (Graph), followed by the property names, a colon and the explanation, one item per property or group of properties; qualifications (kinds of nodes, networks) follow the names in parentheses. Properties that were only named got a short explanation, and a few items that named the wrong kind of property were corrected.
diff --git a/entries/a_blue_start/__init__.py b/entries/a_blue_start/__init__.py
index f1889ab..88e4574 100644
--- a/entries/a_blue_start/__init__.py
+++ b/entries/a_blue_start/__init__.py
@@ -25,8 +25,14 @@ The dataset of the authors also contains the follow network of the users (26.7 m
The network has the following properties:
-- Nodes: `is_starter_pack`, whether the node is a starter pack (otherwise a user); `user_id`, the anonymized id of the user (-1 for starter packs); `pack_id`, the anonymized id of the starter pack (-1 for users); `created`, the date of creation of the user account or of the starter pack (Unix time); for users, `active`, whether the account is active, and `status` (e.g. `normal`, `deactivated`, `takendown`); for starter packs, `creator_id`, the id of the user who created it (-1 if unknown).
-- Edges: `time`, the date on which the user was added to the starter pack (Unix time; -1 if unknown)."""
+- (Node) `is_starter_pack`: whether the node is a starter pack (otherwise a user).
+- (Node) `user_id`: the anonymized id of the user (-1 for starter packs).
+- (Node) `pack_id`: the anonymized id of the starter pack (-1 for users).
+- (Node) `created`: the date of creation of the user account or of the starter pack (Unix time).
+- (Node) `active` (users): whether the account is active.
+- (Node) `status` (users): the status of the account (e.g. `normal`, `deactivated`, `takendown`).
+- (Node) `creator_id` (starter packs): the id of the user who created it (-1 if unknown).
+- (Edge) `time`: the date on which the user was added to the starter pack (Unix time; -1 if unknown)."""
tags = ['Social', 'Online', 'Affiliation', 'Bipartite', 'Unweighted', 'Timestamps', 'Metadata']
url = ['https://doi.org/10.5281/zenodo.19713302', 'https://doi.org/10.3886/ICPSR300499']
citation = [('A. Hasegawa Smith, I. Amburg, S. Kumar, B. Foucault Welles, N. W. Landry, "A Blue Start: A large-scale pairwise and higher-order social network dataset." Scientific Data 13, 585 (2026)',
[entries] Remove unneeded code from the entries 2c69f19
Unneeded "global files" statements, unused imports and variables, f-strings without placeholders, duplicate keys in foodweb_little_rock (keeping the order and the values used), and the second definition of get_lines() in twitter_higgs. Nothing changes in the networks or descriptions. Changed: none
diff --git a/entries/a_blue_start/__init__.py b/entries/a_blue_start/__init__.py
index 70ef292..f1889ab 100644
--- a/entries/a_blue_start/__init__.py
+++ b/entries/a_blue_start/__init__.py
@@ -89,7 +89,6 @@ def day(s):
@coerce_props()
@annotate()
def parse(alts=None):
- global files
name = __name__.split(".")[-1]
users = {} # id -> (index, created, active, status)
packs = {} # id -> (index, created, creator)
[entries] New entry: a_blue_start 373c1d5
diff --git a/entries/a_blue_start/__init__.py b/entries/a_blue_start/__init__.py
new file mode 100644
index 0000000..70ef292
--- /dev/null
+++ b/entries/a_blue_start/__init__.py
@@ -0,0 +1,147 @@
+#! /usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2026 Tiago de Paula Peixoto <tiago@skewed.de>
+#
+# This program is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Affero General Public License as published by the Free
+# Software Foundation, either version 3 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 Affero General Public License for more
+# details.
+#
+# You should have received a copy of the GNU Affero General Public License along
+# with this program. If not, see <http://www.gnu.org/licenses/>.
+
+from .. import *
+
+title = "Bluesky starter packs (A Blue Start, 2025)"
+description = """The starter packs of the social network Bluesky, from the dataset "A Blue Start" of Hasegawa Smith, Amburg, Kumar, Foucault Welles and Landry: all starter packs available on Bluesky in late October 2025 (retrieved until November 16, 2025). A starter pack is a list of 6 to 150 users (and feeds) curated by any user, which other users can follow with a single click. The network is bipartite: its nodes are users and starter packs, and an edge connects each starter pack with each user listed in it. The users and starter packs are identified by anonymized ids (non-reversible hashes of their identifiers, DIDs).
+
+The dataset of the authors also contains the follow network of the users (26.7 million users), which is available only from SOMAR/ICPSR with a data use agreement, and is not part of this entry; the starter packs were published openly on Zenodo, in the HIF format for higher-order networks (users as nodes, starter packs as sets).
+
+The network has the following properties:
+
+- Nodes: `is_starter_pack`, whether the node is a starter pack (otherwise a user); `user_id`, the anonymized id of the user (-1 for starter packs); `pack_id`, the anonymized id of the starter pack (-1 for users); `created`, the date of creation of the user account or of the starter pack (Unix time); for users, `active`, whether the account is active, and `status` (e.g. `normal`, `deactivated`, `takendown`); for starter packs, `creator_id`, the id of the user who created it (-1 if unknown).
+- Edges: `time`, the date on which the user was added to the starter pack (Unix time; -1 if unknown)."""
+tags = ['Social', 'Online', 'Affiliation', 'Bipartite', 'Unweighted', 'Timestamps', 'Metadata']
+url = ['https://doi.org/10.5281/zenodo.19713302', 'https://doi.org/10.3886/ICPSR300499']
+citation = [('A. Hasegawa Smith, I. Amburg, S. Kumar, B. Foucault Welles, N. W. Landry, "A Blue Start: A large-scale pairwise and higher-order social network dataset." Scientific Data 13, 585 (2026)',
+ 'https://doi.org/10.1038/s41597-026-06920-1')]
+upstream_license = ('Creative Commons Attribution 4.0 International (CC BY 4.0)',
+ 'https://creativecommons.org/licenses/by/4.0/')
+icon_hash = None
+
+# Zenodo record (HIF JSON file, 1.9 GB, pretty-printed), read as a stream
+upstream_prefix = 'https://zenodo.org/records/19713302/files'
+files = [('deidentified_starterpack_hif.json', None, None)]
+
+# Number of objects read per section (None for all; set only for checks)
+_check_rows = None
+
+def fetch_upstream(force=False):
+ return fetch_upstream_files(__name__.split(".")[-1], upstream_prefix, files,
+ force)
+
+def hif_objects(f):
+ """Iterate over the objects of the arrays of a pretty-printed HIF file
+ (two spaces per level, one array element per object), as pairs (section,
+ object), without loading the whole file."""
+ section = None
+ buf = None
+ counts = {}
+ for line in f:
+ s = line.strip()
+ if line.startswith(' "') and s.endswith("["):
+ section = s.split('"')[1]
+ counts[section] = 0
+ continue
+ if section is None:
+ continue
+ if line.startswith(" {"):
+ buf = [line]
+ if s.endswith("}") or s.endswith("},"):
+ obj = s.rstrip(",")
+ else:
+ continue
+ elif buf is not None:
+ buf.append(line)
+ if not line.startswith(" }"):
+ continue
+ obj = "".join(buf).rstrip().rstrip(",")
+ else:
+ continue
+ buf = None
+ counts[section] += 1
+ if _check_rows is not None and counts[section] > _check_rows:
+ continue
+ yield section, json.loads(obj)
+
+def day(s):
+ if not s:
+ return -1
+ return int(numpy.datetime64(s[:10], "s").astype("int64"))
+
+@cache_network()
+@coerce_props()
+@annotate()
+def parse(alts=None):
+ global files
+ name = __name__.split(".")[-1]
+ users = {} # id -> (index, created, active, status)
+ packs = {} # id -> (index, created, creator)
+ inc = []
+ other = set()
+ with open_upstream_file(name, files[0][0], "r") as f:
+ for section, o in hif_objects(f):
+ a = o.get("attrs") or {}
+ if section == "nodes":
+ users[o["node"]] = (len(users), day(a.get("date-created")),
+ -1 if a.get("active") is None else int(bool(a["active"])),
+ a.get("status") or "")
+ other.update(set(a) - {"date-created", "active", "status"})
+ elif section == "edges":
+ c = a.get("creator-id")
+ packs[o["edge"]] = (len(packs), day(a.get("date-created")),
+ -1 if c is None else c)
+ other.update(set(a) - {"date-created", "creator-id"})
+ elif section == "incidences":
+ inc.append((o["node"], o["edge"], day(a.get("date-added"))))
+ other.update(set(a) - {"date-added"})
+ if other:
+ raise ValueError(f"unexpected attributes: {other}")
+ # users and starter packs referenced in the incidences but not listed
+ for u, p, t in inc:
+ if u not in users:
+ users[u] = (len(users), -1, -1, "")
+ if p not in packs:
+ packs[p] = (len(packs), -1, -1)
+ nu = len(users)
+ g = Graph(directed=False)
+ g.add_vertex(nu + len(packs))
+ g.vp.is_starter_pack = g.new_vp("bool")
+ g.vp.is_starter_pack.a[nu:] = True
+ g.vp.user_id = g.new_vp("int64_t", val=-1)
+ g.vp.pack_id = g.new_vp("int64_t", val=-1)
+ g.vp.created = g.new_vp("int64_t", val=-1)
+ g.vp.active = g.new_vp("int16_t", val=-1)
+ g.vp.status = g.new_vp("string")
+ g.vp.creator_id = g.new_vp("int64_t", val=-1)
+ for k, (i, c, act, st) in users.items():
+ g.vp.user_id.a[i] = k
+ g.vp.created.a[i] = c
+ g.vp.active.a[i] = act
+ g.vp.status[i] = st
+ for k, (i, c, cr) in packs.items():
+ g.vp.pack_id.a[nu + i] = k
+ g.vp.created.a[nu + i] = c
+ g.vp.creator_id.a[nu + i] = cr
+ e = numpy.array([(users[u][0], nu + packs[p][0], t) for u, p, t in inc],
+ dtype="int64").reshape(-1, 3)
+ del inc, users, packs
+ g.ep.time = g.new_ep("int64_t")
+ g.add_edge_list(e, eprops=[g.ep.time])
+ yield None, g