text stringlengths 3 8.33k | repo stringclasses 52
values | path stringlengths 6 141 | language stringclasses 35
values | sha stringlengths 64 64 | chunk_index int32 0 273 | n_tokens int32 1 896 |
|---|---|---|---|---|---|---|
, mock_http_client: respx.MockRouter):
"""discover() calls /paper/search/bulk (not /paper/search)."""
mock_http_client.get("https://api.semanticscholar.org/graph/v1/paper/search/bulk").mock(
return_value=Response(200, json=S2_BULK_FIXTURE)
)
scraper = SemanticScholarScraper(... | jku-encyclopedia | tests/unit/test_scrapers/test_semantic_scholar.py | Python | d3305b1ea4394e70a465e847ca263bc2784795266f6150e6195dd1d3ae8a722a | 1 | 896 |
batch_papers)
)
mock_http_client.get("https://api.semanticscholar.org/graph/v1/paper/search/bulk").mock(
return_value=Response(200, json={"data": bulk_papers, "token": None})
)
scraper = SemanticScholarScraper(settings)
items = await scraper.discover()
await ... | jku-encyclopedia | tests/unit/test_scrapers/test_semantic_scholar.py | Python | 2a87223f6fda583c09c4254c9acdde2efe3efdc4357e8c63074bf6e07ff565e7 | 2 | 802 |
"""Unit tests for Web Crawler scraper."""
from __future__ import annotations
import pytest
import respx
from httpx import Response
from unittest.mock import AsyncMock, patch
from jku_kb.config import Settings
from jku_kb.models import FetchStatus, ManifestEntry, Modality, RawItem
from jku_kb.scrapers.web_crawl impor... | jku-encyclopedia | tests/unit/test_scrapers/test_web_crawl.py | Python | 428a11b3f4cb34bbdb310278222a7ddcd88a140ef9a15562981296830c0180d0 | 0 | 896 |
----------------------------------------------------
class TestMediaExtraction:
"""Tests for _extract_media_links_from_html pure function."""
def test_extracts_img_tags(self):
"""HTML with <img src> returns dict with url, modality='image', alt_text."""
html = '<html><head><title>Test</title><... | jku-encyclopedia | tests/unit/test_scrapers/test_web_crawl.py | Python | d7e64165055735288781a5cd05374267e4ba8aa0e1571d006c0e4b6a755fd8c7 | 1 | 896 |
html>'
results = _extract_media_links_from_html(html, PAGE_URL)
assert len(results) == 1
assert results[0]["modality"] == "image"
assert results[0]["tag"] == "a"
def test_extracts_a_href_video(self):
"""HTML with <a href> ending in video extension returns dict with modality=... | jku-encyclopedia | tests/unit/test_scrapers/test_web_crawl.py | Python | 76ed0836f8ff61553ea97116bc218479d1458e9ea3e83e4c470e8bf1866044c8 | 2 | 896 |
research/images/fig.png"
def test_includes_page_title(self):
"""Result includes page_title from <title> tag."""
html = '<html><head><title>Deep Learning</title></head><body><img src="/fig.png"></body></html>'
results = _extract_media_links_from_html(html, PAGE_URL)
assert len(result... | jku-encyclopedia | tests/unit/test_scrapers/test_web_crawl.py | Python | 0387eb71e03dfee12cc397bd3c26ed90665ae61308ab382729964e42223ee2a9 | 3 | 896 |
with 'button' in filename stem is decorative."""
assert _is_decorative("https://www.jku.at/images/button-submit.png") is True
def test_nav_filtered(self):
"""URL with 'nav' in filename stem is decorative."""
assert _is_decorative("https://www.jku.at/images/nav-bg.png") is True
def test... | jku-encyclopedia | tests/unit/test_scrapers/test_web_crawl.py | Python | 63d36d0e7eb67966e5e869f1e3c738793bee13b3f0403a20600332ae2bb896eb | 4 | 896 |
schemas/sitemap/0.9">
<url><loc>https://www.jku.at/valid/</loc></url>
<url><loc>https://external-site.com/invalid/</loc></url>
<url><loc>https://subdomain.jku.at/also-valid/</loc></url>
</urlset>"""
mock_http_client.get("https://www.jku.at/sitemap.xml").mock(
return_value=Response(200, text=m... | jku-encyclopedia | tests/unit/test_scrapers/test_web_crawl.py | Python | 3699f8b949a76188fb061b7bc55132a93f1f2cc86d3d9cf97004a373ed36edcc | 5 | 896 |
course/" in urls
assert "https://www.jku.at/news/latest/" not in urls
# ---------------------------------------------------------------------------
# Fetch tests
# ---------------------------------------------------------------------------
class TestWebCrawlFetch:
@pytest.mark.asyncio
async def test... | jku-encyclopedia | tests/unit/test_scrapers/test_web_crawl.py | Python | 00b6340f62536a2b5ce6c08eea17d9abf98cd07a699c121545efd597c4530871 | 6 | 896 |
,
)
mock_http_client.get("https://www.jku.at/timeout/").mock(
side_effect=httpx.ConnectError("timeout")
)
scraper = WebCrawlScraper(settings)
result = await scraper.fetch(item)
await scraper.close()
assert result.fetch_status == FetchStatus.FAILED
... | jku-encyclopedia | tests/unit/test_scrapers/test_web_crawl.py | Python | 038d1c5853c75d248994b62f5989f1f281b2a717d65f883f3745fdf7470a31bc | 7 | 896 |
url"]
@pytest.mark.asyncio
async def test_do_fetch_no_pdf_file_when_no_links(self, settings: Settings, mock_http_client: respx.MockRouter):
"""_do_fetch() does not write pdf_discovery.jsonl when no PDF links in HTML."""
item = RawItem(
item_id="www_jku_at_page",
source_i... | jku-encyclopedia | tests/unit/test_scrapers/test_web_crawl.py | Python | 9c87c9cd0629c954accd99ba56f84c8545c804790c72f804f61120d792876e28 | 8 | 896 |
at/news/bar", ["/en/research", "/en/teaching"], [])
def test_exclude_pattern_rejects_matching(self):
assert not _url_passes_filter("https://www.jku.at/en/research/news/x", [], ["/news/"])
def test_exclude_takes_priority_over_include(self):
assert not _url_passes_filter("https://www.jku.at/en/r... | jku-encyclopedia | tests/unit/test_scrapers/test_web_crawl.py | Python | 1470df2af6c023baefe1d4c2a7cff5ca3cbff83cd092ea43037462bb93d419ac | 9 | 896 |
assert _url_passes_filter("https://ssw.jku.at/Teaching/SS2025/Compiler.html", patterns, excludes)
def test_ssw_contact_excluded(self):
"""ssw /Contact pages are rejected (capital C)."""
patterns = ["/Teaching/", "/Research/", "/Publications/", "/Projects/"]
excludes = ["/Contact", "/Imprint... | jku-encyclopedia | tests/unit/test_scrapers/test_web_crawl.py | Python | e1b8e19f0004347ce02938c9993ed045c3ac4c60a18d8c57f37e4dc558e02a0d | 10 | 896 |
={"content-type": "text/xml"})
)
scraper = WebCrawlScraper(settings)
urls = await scraper._parse_sitemap("https://www.jku.at/sitemap.xml")
await scraper.close()
assert urls == set()
@pytest.mark.asyncio
async def test_sitemap_url_detection_with_query_params(self, setti... | jku-encyclopedia | tests/unit/test_scrapers/test_web_crawl.py | Python | 56abe76cbedb2125a149895ee345729487dacbfb10f5625fa6e8389f36bdaf29 | 11 | 896 |
script>alert('x')</script><p>Visible</p></body></html>"""
text = _extract_text_from_html(html, "https://www.jku.at/t/")
assert "Visible" in text
assert "alert" not in text
assert "color:red" not in text
def test_includes_url_and_title(self):
"""_extract_text_from_html includ... | jku-encyclopedia | tests/unit/test_scrapers/test_web_crawl.py | Python | cb88ac5dac2da54ec05ac0201084ed81cdc0eb93994763aed42577326f4a296f | 12 | 896 |
research/"],
exclude_patterns=[],
crawl_mode="recursive",
)
items = await scraper.discover()
await scraper.close()
mock_crawl.assert_called_once()
call_kwargs = mock_crawl.call_args
assert call_kwargs.kwargs.get("start_url") ==... | jku-encyclopedia | tests/unit/test_scrapers/test_web_crawl.py | Python | da804f9f6fed1b6ec4a40f7034b4c7a027d90de694ead053755d8c9155c077d7 | 13 | 896 |
URL
mock_crawl.assert_called_once()
# ---------------------------------------------------------------------------
# DEFAULT_EXCLUDE_PATTERNS constant and merging in discover()
# ---------------------------------------------------------------------------
class TestDefaultExcludePatterns:
"""Tests for DEF... | jku-encyclopedia | tests/unit/test_scrapers/test_web_crawl.py | Python | 90cceff1c8d70dffa97075d72ba93df4bb8f5a7bebc17daec0b987f107d8fe09 | 14 | 896 |
jku.at/imprint"), \
"url_passes_filter lambda should reject /imprint even with empty per-site excludes"
# ---------------------------------------------------------------------------
# jku_web source_variant with hybrid mode config
# -------------------------------------------------------------------------... | jku-encyclopedia | tests/unit/test_scrapers/test_web_crawl.py | Python | 0b79c43503a7d87a026d9bf3d6f795565f74053ce3d5e78e1a4bef14a2270f22 | 15 | 896 |
3 start_urls for broad coverage, got {variant.start_urls}"
)
def test_bioinf_jku_include_patterns_empty(self):
"""settings.source_variants['bioinf_jku'].include_patterns == [] (broad crawl)."""
settings = Settings()
variant = settings.source_variants["bioinf_jku"]
assert var... | jku-encyclopedia | tests/unit/test_scrapers/test_web_crawl.py | Python | 39785db7376aa6ef1e2e4290a5c09b740c466af0c2ee638677f0a86146989e62 | 16 | 896 |
"] for s in sources}
for sid in ["jku_web", "bioinf_jku", "fmv_jku"]:
assert sid in source_ids, f"{sid} missing from sources.json"
def test_institute_entries_have_expected_min_items(self):
"""All 3 institute entries have quality.expected_min_items >= 10."""
sources = self._load_... | jku-encyclopedia | tests/unit/test_scrapers/test_web_crawl.py | Python | a5439f32a03ffc68f289f2c4f532be88a13381a393f9d63be9064469efee6d59 | 17 | 896 |
url="https://www.jku.at/page/",
title="",
modality=Modality.TEXT,
file_type="html",
)
mock_http_client.get("https://www.jku.at/page/").mock(
return_value=Response(200, text=HTML_NO_PDF, headers={"content-type": "text/html"})
)
scraper = We... | jku-encyclopedia | tests/unit/test_scrapers/test_web_crawl.py | Python | ed52e924eb2ef34204dfdc734a97ec0ca878aa7985106ffa36f1c26104c9f2b7 | 18 | 896 |
---------------------------------------------
class TestMediaDedup:
"""Tests for cross-page URL deduplication in _append_media_links."""
def test_dedup_across_pages(self, settings: Settings):
"""Same media URL discovered from two pages appears only once in JSONL."""
scraper = WebCrawlScraper(... | jku-encyclopedia | tests/unit/test_scrapers/test_web_crawl.py | Python | 5351cc9af1b410b4c5e915fbd0d6148f6b635287066adcd09bdf83ce3805787d | 19 | 896 |
: "https://www.jku.at/page/",
"page_title": "P",
"modality": "image",
"alt_text": "",
"tag": "img",
},
])
discovery_file = scraper.cache_dir / "media_discovery.jsonl"
assert discovery_file.exists()
import orjso... | jku-encyclopedia | tests/unit/test_scrapers/test_web_crawl.py | Python | f3112b509c3f51e00c9e41957fee4e743a4414a19c7f518a525e06644ab28c17 | 20 | 166 |
"""Unit tests for Wikidata SPARQL scraper."""
from __future__ import annotations
import pytest
import respx
from httpx import Response
from jku_kb.config import Settings
from jku_kb.models import FetchStatus, Modality, RawItem
from jku_kb.scrapers.wikidata import (
CLAIM_SECTIONS,
WIKIDATA_ENTITY_URL,
Wi... | jku-encyclopedia | tests/unit/test_scrapers/test_wikidata.py | Python | ae9dbfd016057b5b7e274821f7fd8b016b029d5e9526a058f91ebb0448828dd1 | 0 | 896 |
.org/sparql").mock(
return_value=Response(200, json=SPARQL_EMPTY_FIXTURE)
)
scraper = WikidataScraper(settings)
items = await scraper.discover()
await scraper.close()
assert items == []
@pytest.mark.asyncio
async def test_discover_extracts_qid_from_uri(self... | jku-encyclopedia | tests/unit/test_scrapers/test_wikidata.py | Python | b5a292f9873a9b2f90d3bedfc00932b532320784bf40e3855333e872cc9399b1 | 1 | 896 |
item)
await scraper.close()
from pathlib import Path
assert result.local_path is not None
assert Path(result.local_path).exists()
class TestFormatEntityAsMarkdown:
"""Unit tests for _format_entity_as_markdown and _extract_claim_values."""
def test_format_entity_basic_heading(... | jku-encyclopedia | tests/unit/test_scrapers/test_wikidata.py | Python | 2aa1853d68b19c7788bb0c7186afed11f2c2e20fc853de5241782f6059e788d9 | 2 | 896 |
"
statements = [
{"mainsnak": {}}, # missing snaktype
{"bad": "data"}, # missing mainsnak
None, # None entry
]
# Should not raise, should return empty list
result = _extract_claim_values([s for s in statements if s is not None])
... | jku-encyclopedia | tests/unit/test_scrapers/test_wikidata.py | Python | d50a18c0471ab91b4dd8815d1b25ea923691c704d0c1af56a94ba7896c60f30e | 3 | 197 |
"""Unit tests for YouTube scraper."""
from __future__ import annotations
import pytest
import respx
from httpx import Response
from jku_kb.config import Settings
from jku_kb.models import Modality
from jku_kb.scrapers.youtube import YouTubeScraper, _playlist_item_to_raw_item
CHANNELS_FIXTURE = {"items": [{"contentD... | jku-encyclopedia | tests/unit/test_scrapers/test_youtube.py | Python | be4e4b2e5f53362e2f7a6c2cdb859e7a6ebb7329c7e1521afa64ddb02e864aaa | 0 | 896 |
=CHANNELS_FIXTURE)
)
mock_http_client.get("https://www.googleapis.com/youtube/v3/playlistItems").mock(
return_value=Response(200, json=PLAYLIST_ITEMS_FIXTURE)
)
scraper = YouTubeScraper(settings)
items = await scraper.discover()
await scraper.close()
... | jku-encyclopedia | tests/unit/test_scrapers/test_youtube.py | Python | c78081be728e3d4ab9b19d7b9c97a2d6008a045b0350bd4209e23881a476dc5c | 1 | 475 |
"""Unit tests for Zenodo scraper."""
from __future__ import annotations
import pytest
import respx
from httpx import Response
from jku_kb.config import Settings
from jku_kb.scrapers.zenodo import ZenodoScraper, _hit_to_raw_item
ZENODO_HIT = {
"id": 12345,
"metadata": {
"title": "xLSTM Research Data"... | jku-encyclopedia | tests/unit/test_scrapers/test_zenodo.py | Python | 6dbc2730b9ea6f2457f64f8d2d5b7645479ea7c6eec8e4434d1916192ee7eb93 | 0 | 888 |
"""Unit tests for LocalFileStore."""
from __future__ import annotations
from pathlib import Path
import pytest
from jku_kb.config import Settings
from jku_kb.storage.local_fs import LocalFileStore, _safe_filename
# ---------------------------------------------------------------------------
# Fixtures
# -----------... | jku-encyclopedia | tests/unit/test_storage/test_local_fs.py | Python | 3f84d61501bb0f17319a0f98104eb45126e3542f566866a208b55855ed30dccf | 0 | 896 |
------------------------------------------------------------------
class TestGetItemPath:
def test_basic_path(self, store: LocalFileStore) -> None:
"""get_item_path returns source_dir/safe_filename + ext."""
p = store.get_item_path("github", "repo_main", ".json")
assert p.parent.name == "g... | jku-encyclopedia | tests/unit/test_storage/test_local_fs.py | Python | 83c65f897bfaddb455e21f057ae79d010ffd369d0dac410ab5f08257d3e36e59 | 1 | 896 |
-----------------------------------
class TestGetHash:
def test_sha256_deterministic(self, store: LocalFileStore, tmp_path: Path) -> None:
"""get_hash returns SHA-256 hex digest and is deterministic."""
p = tmp_path / "hashme.bin"
p.write_bytes(b"hello world")
h1 = store.get_hash(... | jku-encyclopedia | tests/unit/test_storage/test_local_fs.py | Python | 6d5c4df7b5afe6e0a03c3553acdab8281b4ef72fc70703d12b9b8707b65f30e2 | 2 | 896 |
<>|"?*chars')
assert "/" not in result
assert "\\" not in result
assert ":" not in result
assert "<" not in result
assert ">" not in result
def test_truncates_long_names(self) -> None:
"""Names longer than 200 chars are truncated with hash suffix."""
long_nam... | jku-encyclopedia | tests/unit/test_storage/test_local_fs.py | Python | de2031e853328eed159f8e7bf77d7deb16019d88dbfc06e8692aa069101a2344 | 3 | 126 |
"""Unit tests for Neo4jStore."""
from __future__ import annotations
from unittest.mock import AsyncMock, MagicMock, patch
import pytest
from jku_kb.config import Settings
from jku_kb.models import Chunk, Modality
from jku_kb.storage.neo4j import Neo4jStore
# --------------------------------------------------------... | jku-encyclopedia | tests/unit/test_storage/test_neo4j.py | Python | 677b5a432b5cfa59f90ad6bcc03da98b19bdc9df0eaf26e8e6474a7100b16d07 | 0 | 896 |
all_queries)
assert any("CREATE CONSTRAINT institute_id" in q for q in all_queries)
assert any("CREATE CONSTRAINT topic_name" in q for q in all_queries)
@pytest.mark.asyncio
async def test_indexes(store: Neo4jStore, mock_session: AsyncMock) -> None:
"""setup_schema() runs index creation for modality, year... | jku-encyclopedia | tests/unit/test_storage/test_neo4j.py | Python | 2d6f8cef395b3dc2d13ddf0d1a50faeee65b5e26dadb6d8f121e5d269031ab79 | 1 | 896 |
---------------------------------------------------
@pytest.mark.asyncio
async def test_edge_from_source(store: Neo4jStore, mock_session: AsyncMock) -> None:
"""link_chunk_to_source creates FROM_SOURCE edge."""
await store.link_chunk_to_source("c1", "s1")
query = mock_session.run.call_args.args[0]
as... | jku-encyclopedia | tests/unit/test_storage/test_neo4j.py | Python | c0475f05085eaa9ccc95c353d58e79298f54a6afc42aab35489cf0836d5bf73a | 2 | 896 |
mock_tx: AsyncMock,
) -> None:
"""When UNWIND query fails, transaction is rolled back, not committed."""
mock_tx.run.side_effect = RuntimeError("simulated failure")
with pytest.raises(RuntimeError, match="simulated failure"):
await store.upsert_chunk_nodes_batch(sample_chunks)
# rollback must ... | jku-encyclopedia | tests/unit/test_storage/test_neo4j.py | Python | 011cecea575eb4733112e5cb90269546da801fcc4e247acffcc7567097877c16 | 3 | 896 |
# ---------------------------------------------------------------------------
@pytest.mark.asyncio
async def test_similarity_edges_batch(
store: Neo4jStore,
mock_session: AsyncMock,
mock_tx: AsyncMock,
) -> None:
"""create_similarity_edges_batch runs UNWIND with explicit transaction."""
edges = [(... | jku-encyclopedia | tests/unit/test_storage/test_neo4j.py | Python | 3da09004c77a60e6e299fcaed27db342c1d46067a9ef06f8302d16e4c8ce97c2 | 4 | 896 |
--------
# Next chunk edges edge case
# ---------------------------------------------------------------------------
@pytest.mark.asyncio
async def test_next_chunk_edges_fewer_than_two(
store: Neo4jStore,
mock_session: AsyncMock,
mock_tx: AsyncMock,
) -> None:
"""create_next_chunk_edges returns early w... | jku-encyclopedia | tests/unit/test_storage/test_neo4j.py | Python | fd73e3b95f898f00bb14862d136be8cf0a483d2141012f5f0fc0c0c8d00b781e | 5 | 896 |
verify_connectivity.assert_awaited_once()
# ---------------------------------------------------------------------------
# Batch size split
# ---------------------------------------------------------------------------
@pytest.mark.asyncio
async def test_upsert_batch_splits_at_threshold(
store: Neo4jStore,
mo... | jku-encyclopedia | tests/unit/test_storage/test_neo4j.py | Python | f13e3f98efa50929ba58226d163f5995e358b8027f9067d59cd9302578413df2 | 6 | 300 |
"""Unit tests for QdrantStore hardening.
Tests cover:
- Collection creation with correct VectorParams
- Skipping creation when collection already exists
- Payload indexes (7 total, including topic_tags)
- Batch chunking at 500 points
- Partial failure retry (batch-level -> individual)
- Dead-letter tracking for indivi... | jku-encyclopedia | tests/unit/test_storage/test_qdrant.py | Python | 309574911f29c476b3eb6a0018be03c660b9b6d43a9483a2183d66d166c62639 | 0 | 896 |
is NOT called."""
existing_coll = MagicMock()
existing_coll.name = "test_collection"
mock_qdrant_client.get_collections.return_value = MagicMock(collections=[existing_coll])
# Also mock get_collection for dimension check
vectors = qdrant_models.VectorParams(
size=3072, distance=qdrant_models... | jku-encyclopedia | tests/unit/test_storage/test_qdrant.py | Python | 16008f9c8cab6258d1633d6a33ef078834bf674d23eca5f2783790c323e96db1 | 1 | 896 |
succeed
mock_qdrant_client.upsert.side_effect = side_effect
dead_letter = await store.upsert_batch(chunks, embeddings)
# 1 batch call + 3 individual retry calls
assert mock_qdrant_client.upsert.call_count == 4
assert dead_letter == []
@pytest.mark.asyncio
async def test_upsert_batch_dead_letter... | jku-encyclopedia | tests/unit/test_storage/test_qdrant.py | Python | 7c942b867a2edc1c8426230977c27c650e26c5ac6bd96304ee31a6155dade052 | 2 | 896 |
123")
# Different inputs produce different IDs
assert _deterministic_id("x") != _deterministic_id("y")
@pytest.mark.asyncio
async def test_upsert_single_uses_deterministic_id(
store: QdrantStore,
mock_qdrant_client: AsyncMock,
sample_chunk: Chunk,
sample_embedding: EmbeddingResult,
) -> None:
... | jku-encyclopedia | tests/unit/test_storage/test_qdrant.py | Python | b8a3133585b31cebd8c701ed3fe7e76c7f11a609e0069fb4f13685892dd756ed | 3 | 127 |
<p align="center" href="https://git.io/typing-svg">
<a href="https://git.io/typing-svg"><img src="https://readme-typing-svg.herokuapp.com?font=Poppins&pause=1000&color=E4E4E4¢er=true&vCenter=true&width=435&lines=%F0%9F%8C%BF++Julian+S.;%F0%9F%8C%B1+Informatics+Student;%F0%9F%93%A6+Full+Stack+Developer" alt="Typi... | julian-at | README.md | Markdown | ae31fd62bbe201735c814635dfe604b90551668ce1c7ca6a382e1133cfb262da | 0 | 896 |
io/badge/IntelliJ_IDEA-000000.svg?style=for-the-badge&logo=intellij-idea&logoColor=white)
<p align="left">
<img align="center" src="https://komarev.com/ghpvc/?username=julian-at&style=for-the-badge&color=blueviolet" alt="julian-at"/>
</p>
| julian-at | README.md | Markdown | e9337ae4847a622a33989fc13d8df0984e9be33332874804c0eb828ab696127e | 1 | 88 |
<html>
<head>
<style>
@font-face {
font-family: Wolfenstein;
src: url("../font/wolfenstein.ttf");
}
a:link{
color: #E6E6E6;
text-decoration: none;
}
a:visited{
color: #E6E6E6;
text-decora... | Kriegsmarine_Webprojekt | default.html | HTML | bbfb52d8009a875826cf4840c5f50061c5af3cf1818680cbb30e23cfcf3719e6 | 0 | 687 |
<html>
<head>
<style>
@font-face {
font-family: Wolfenstein;
src: url("font/wolfenstein.ttf");
}
a:link{
color: #E6E6E6;
text-decoration: none;
}
a:visited{
color: #E6E6E6;
text-decoratio... | Kriegsmarine_Webprojekt | index.html | HTML | 4b17763ec48c11a28779ba7361e7822a9ab7b7542f18b31a45237fcd1f766c01 | 0 | 896 |
Umfang als die Reichsmarine vor 1935.
</p>
</td>
</tr>
</table>
</div>
<footer>
<div class="footer-content">
<h3>Kriegsmarine Wiki</h3>
</div>
<div class="footer-bottom">
... | Kriegsmarine_Webprojekt | index.html | HTML | fc637923b775f1eb5e4d1c03af31dc9859aec3cc7c8012918f236ae8eb4c618b | 1 | 99 |
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: #081017
}
::-webkit-scrollbar-thumb {
border-radius: 5px;
background: #0E1923;
}
::-webkit-scrollbar-thumb:hover {
background: #0E1923;
}
footer{
position: relative;
background: #0E1923;
height: auto;... | Kriegsmarine_Webprojekt | css/footer.css | CSS | f1917ae33d1fb3a8378554dc15397012221c3608d5aec9c2f217fe6d6d1bf9fe | 0 | 386 |
<html>
<head>
<style>
@font-face {
font-family: Wolfenstein;
src: url("../font/wolfenstein.ttf");
}
a:link{
color: #E6E6E6;
text-decoration: none;
}
a:visited{
color: #E6E6E6;
text-decora... | Kriegsmarine_Webprojekt | SubSides/Dienstgrade_und_Rangabzeichen.html | HTML | e30e98d387549e870242659663385eaa66db1d98b748a533640d73269662bce0 | 0 | 896 |
" height="22" src="../Images/Dienstgrade_und_Rangabzeichen/1/Kriegsmarine_epaulette_Vizeadmiral.png" alt="Vizeadmiral">
</td>
<td>
<img width="50" height="22" src="../Images/Dienstgrade_und_Rangabzeichen/1/Kriegsmarine_e... | Kriegsmarine_Webprojekt | SubSides/Dienstgrade_und_Rangabzeichen.html | HTML | f2e07d1c3c7220bc14cf7ace5dc4aeb960a85d21d715bfa3e137fb53a450643e | 1 | 896 |
<td>Großadmiral</td>
<td>Generaladmiral</td>
<td>Admiral</td>
<td>Vizeadmiral</td>
<td>Konteradmiral</td>
<td>Kapitän zur See</td>
... | Kriegsmarine_Webprojekt | SubSides/Dienstgrade_und_Rangabzeichen.html | HTML | d43c92b5a18980458f8214d6589f1c3f733bba1bd2eb80a489f38dedbcc5486e | 2 | 712 |
<html>
<head>
<style>
@font-face {
font-family: Wolfenstein;
src: url("../font/wolfenstein.ttf");
}
a:link{
color: #E6E6E6;
text-decoration: none;
}
a:visited{
color: #E6E6E6;
text-decora... | Kriegsmarine_Webprojekt | SubSides/Geschichte.html | HTML | 7ef87ebb6ac62eabf908a52f757652e832adf2f16094ee5dc332e5c973646fda | 0 | 896 |
, von Hitler auf 1945 vorverlegt, eine große Zahl neuer Kriegsschiffe aller Klassen gebaut werden. </p>
<p>1935 wurde die Reichsmarine in Kriegsmarine umbenannt und als neue Kriegsflagge der Wehrmacht, und damit auch zur See, die Hakenkreuzflagge mit dem Eisernen Kreuz im linken Obereck sowie ei... | Kriegsmarine_Webprojekt | SubSides/Geschichte.html | HTML | 50ba36ece9f93def3ae793ae26709fe9a9fbb54a4f674b31433126f23fcad2ee | 1 | 896 |
in eine Versorgungskrise brachten, gelang es nicht, den Gegner mit U-Booten in die Knie zu zwingen. Nur von Februar bis Dezember 1942 operierte die Kriegsmarine unter einer nicht entzifferten Verschlüsselung; in der übrigen Zeit entzifferten die Alliierten die deutschen Funktelegramme.</p>
<p>Wi... | Kriegsmarine_Webprojekt | SubSides/Geschichte.html | HTML | e502b125e684e0c33d3dab7d384fb9b062deeac7db4865608d3ced1b9aab7155 | 2 | 896 |
Vollstreckung alliierten Instanzen zur Prüfung vorzulegen; die Verfügung wurde aber wegen angeblicher Unkenntnis mehrfach missachtet. Dies betraf nicht nur Urteile kurz vor oder nach der Kapitulation, sondern auch Altfälle z. B. von Deserteuren, die nach der Kapitulation als Kriegsgefangene in alliierten Gewahrsam gera... | Kriegsmarine_Webprojekt | SubSides/Geschichte.html | HTML | 87cdf3d596b5afaf97ea5db72a9d63c55b259497a44e904fe2f887d1303debf6 | 3 | 504 |
<html>
<head>
<style>
@font-face {
font-family: Wolfenstein;
src: url("../font/wolfenstein.ttf");
}
a:link{
color: #E6E6E6;
text-decoration: none;
}
a:visited{
color: #E6E6E6;
text-decora... | Kriegsmarine_Webprojekt | SubSides/Offizierskorps.html | HTML | a453b1e81e57e2d47731786c3a37cab6df4ed86368438033796b621e64aa7113 | 0 | 896 |
bildeten die Offiziere innerhalb eines Staates einen relativ kleinen Personenkreis, der aus höher gebildeten und oft vermögenden Leuten bestand, die sich alleine dem Staat gegenüber verpflichtet sahen. Dieser Elitegedanke führte und führt in Staaten, die bereits in einer Krise stecken, häufig zu Militärputschen, die au... | Kriegsmarine_Webprojekt | SubSides/Offizierskorps.html | HTML | 2c59cd810a3578b176e7fd724859550b291b0a4f31ea7ec25becc89aa78742a5 | 1 | 896 |
border: #E6E6E6 solid 1px;">5</td>
<td style="border: #E6E6E6 solid 1px;">4</td>
<td style="border: #E6E6E6 solid 1px;">8</td>
<td style="border: #E6E6E6 solid 1px;">10</td>
</tr>
... | Kriegsmarine_Webprojekt | SubSides/Offizierskorps.html | HTML | c88f7ea5c52afa14eb738c05b865d77e66872dd999963c96931afdb73471d067 | 2 | 896 |
zur See</td>
<td style="border: #E6E6E6 solid 1px;">99</td>
<td style="border: #E6E6E6 solid 1px;">254</td>
<td style="border: #E6E6E6 solid 1px;">298</td>
<td style="border: #E6E6E6 solid 1px... | Kriegsmarine_Webprojekt | SubSides/Offizierskorps.html | HTML | fa0ba4568c0cb752bb9824f0c998120996beefafceecd8974d11817c3bf3315e | 3 | 896 |
;">
<td style="border: #E6E6E6 solid 1px;">Verwaltungsoffiziere</td>
<td style="border: #E6E6E6 solid 1px;">117</td>
<td style="border: #E6E6E6 solid 1px;">189</td>
<td style="border: #E6E6E6 ... | Kriegsmarine_Webprojekt | SubSides/Offizierskorps.html | HTML | 0d7e13a10f05d2a556244cce0dca94e50360c3c7fd32a495281746bfcde39634 | 4 | 460 |
<html>
<head>
<style>
@font-face {
font-family: Wolfenstein;
src: url("../font/wolfenstein.ttf");
}
a:link{
color: #E6E6E6;
text-decoration: none;
}
a:visited{
color: #E6E6E6;
text-decora... | Kriegsmarine_Webprojekt | SubSides/Quellen.html | HTML | 203766ee0a66639693e4b9bb9acbf36d06a165f19a5fce3c9b1513d6be6e5e07 | 0 | 803 |
<html>
<head>
<style>
@font-face {
font-family: Wolfenstein;
src: url("../font/wolfenstein.ttf");
}
a:link{
color: #E6E6E6;
text-decoration: none;
}
a:visited{
color: #E6E6E6;
text-decora... | Kriegsmarine_Webprojekt | SubSides/Schiffe.html | HTML | 5e279c7f35572b27f14ba2b1fa3cd1fd4b1b5d6f725ef229232bf195761c5a36 | 0 | 896 |
auto; margin-right: auto; font-family: Helvetica;">
<ul style="list-style: none;">
<li>
<h3>Torpedoschulschiff</h3>
</li>
... | Kriegsmarine_Webprojekt | SubSides/Schiffe.html | HTML | bf38ddf562a5ddedf8187dda2d584b20445452d6beed4bb3bd5646e4ff02650f | 1 | 263 |
\documentclass{article}
\usepackage[final]{neurips_2023}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{hyperref}
\usepackage{url}
\usepackage{booktabs}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{nicefrac}
\usepackage{microtype}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{subca... | mlpc-2026-task3 | mlpc_report.tex | TeX | bb7cb55b18eeb2764e928fee823d70d5a914cf3798634735b4aa208f819c5d36 | 0 | 896 |
lowest agreement (24.06\%) among our verified samples. With only five recordings reviewed per team member, this case is illustrative rather than statistically representative. The clip spans 23\,s of polyphonic domestic audio and was annotated independently by exactly two reviewers; their region counts diverge sharply (... | mlpc-2026-task3 | mlpc_report.tex | TeX | 60432f49cb5f1c6f79bdacafdd0ce3a2cb58892aae4404fe4b5cef81ef30f853 | 1 | 896 |
& & \\
\texttt{phone\_ringing} & 0.719 & \textbf{Overall} & \textbf{0.640} \\
\texttt{bell\_ringing} & 0.682 & Own pairs & 0.705 \\
\texttt{keychain} & 0.644 & Other pairs & 0.685 \\
\texttt{cutlery\_dishes} & 0.592 & & \\
\bottomrule
\end{tabular}
\end{table}
\subsection{Converting Annotations t... | mlpc-2026-task3 | mlpc_report.tex | TeX | 9a5fecdfeee956a330f9dc894c59bfce14b5dd6e5b9e727f70046b22b152f885 | 2 | 896 |
devices (top 10 + other), device placement, and recording environments.}
\label{fig:metadata}
\end{figure}
\subsection{Feature Statistics}
Table~\ref{tab:features} reports summary statistics for nine selected feature groups (mean temporal aggregation); $\Delta$-MFCC, $\Delta\Delta$-MFCC, spectral contrast, and low/... | mlpc-2026-task3 | mlpc_report.tex | TeX | 7b48ba8103d7e4c419ebbccf9a05e66f9600c24fcbba1f4d2ffc9c91c8c7f9a1 | 3 | 896 |
to the noise floors and microphone responses of unseen hardware. The second is an environmental bias: kitchens account for 26.3\% of recordings, mechanically over-representing kitchen-associated classes such as \texttt{running\_water} and \texttt{cutlery\_dishes} while leaving bathrooms, hallways, and offices in the lo... | mlpc-2026-task3 | mlpc_report.tex | TeX | 647bb9809fbdbc36df29467edfdf7cdcc31ac170c6562166c38ebc871246ead1 | 4 | 670 |
\documentclass[aspectratio=169]{beamer}
\usetheme{Madrid}
\usecolortheme{default}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{booktabs}
\usepackage{graphicx}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{footline}[frame number]
\title{MLPC 2026 Task 3: Qualitative Analysis}
\subtit... | mlpc-2026-task3 | slides.tex | TeX | 7455f0f76ef9c2d03ab99482e4e1c3d5f8261dd301e40cfc98b9ea476f67050f | 0 | 896 |
(transient bias)
\end{itemize}
\vspace{0.5em}
\textbf{Implications:}
\begin{itemize}
\item Majority-vote underrepresents polyphonic segments
\item Need: more annotators for complex recordings, label smoothing during training
\end{itemize}
\end{column}
\end{columns}
\e... | mlpc-2026-task3 | slides.tex | TeX | 1ef2705e81bea1620f37f2cd18cc9cf3b9888cd099c6917119f24d6d85a9d499 | 1 | 73 |
{
"version": 1,
"lastRunAtMs": 0,
"turnsSinceLastRun": 5,
"lastTranscriptMtimeMs": null,
"lastProcessedGenerationId": "a717ec3a-c58f-408d-a5fd-ed525b9f3e41",
"trialStartedAtMs": null
}
| mlpc-2026-task3 | .cursor/hooks/state/continual-learning.json | JSON | 29174ef580d26d380d979cf7c84176acdc0eb169d4add69c61ae42118830db01 | 0 | 48 |
#!/usr/bin/env python3
"""Export structured JSON for the MLPC interactive slide deck.
When `MLPC2026_dataset_development/` is present, recomputes metrics from NPZ/CSV
(aligned with `section2_annotations.py` / `section3_features.py`).
Otherwise writes a **static fallback** curated from `mlpc_report.tex` tables and
nar... | mlpc-2026-task3 | scripts/export_deck_data.py | Python | 776568db88e6e3b6ea211d73552a84dfedce0b14d33d31bcf3d6e4b69356aa4e | 0 | 896 |
total_segments += t
for ti in range(t):
active = np.where(labels[ti] > 0)[0]
for ii in active:
for jj in active:
cooccurrence[ii, jj] += 1
diag = np.diag(cooccurrence).copy()
diag[diag == 0] = 1
cond_prob = (cooccurrence / diag[:, None]).a... | mlpc-2026-task3 | scripts/export_deck_data.py | Python | a278e01601d1f306e1e7d9ebe62e22774ff3633d32c87018049332ceb6e612e7 | 1 | 896 |
("RollLow", "rolloff_low_mean"),
("RollHigh", "rolloff_high_mean"),
]
all_features = {name: [] for name, _ in corr_features}
for _fname, npz in iter_npz_files():
for name, key in corr_features:
arr = npz[key]
if arr.shape[1] > 1:
vals = np.mean(arr, ax... | mlpc-2026-task3 | scripts/export_deck_data.py | Python | 422745b0934a2ef6be767cbfa0084a16c14a4c668fd8cf1facce2801c71d4542 | 2 | 896 |
microwave": 12_870, # sustained
"cutlery_dishes": 11_540, # kitchen activity
"toilet_flushing": 10_680, # medium-length events
"phone_ringing": 9_450, # medium
"door_open_close": 8_320, # short-medium
"bell_ringing": 6_780, # short
"window_open_close": 5_92... | mlpc-2026-task3 | scripts/export_deck_data.py | Python | 2d55a615b16f7167743ddbd3da9657678e98b9c0260ca5ec35672c33623c1383 | 3 | 896 |
correlated at r = 0.82"
set_corr("MFCC", "MelSpect", 0.82)
# Report: "ZCR, centroid, bandwidth, and high rolloff form a strongly correlated cluster (r > 0.6)"
for a, b in [
("ZCR", "Centroid"),
("ZCR", "Bandwidth"),
("Centroid", "Bandwidth"),
("Bandwidth", "RollHigh"),
... | mlpc-2026-task3 | scripts/export_deck_data.py | Python | 7c3891effd3f75284e7acc05f8dd8a5c8ff5e65604db2948b4420105e4df9904 | 4 | 896 |
"annotatorB": 2},
{"class": "footsteps", "annotatorA": 1, "annotatorB": 2},
{"class": "keyboard_typing", "annotatorA": 1, "annotatorB": 1},
{"class": "keychain", "annotatorA": 0, "annotatorB": 1},
],
"totals": {"annotatorA": 2, "annotatorB": 6},
... | mlpc-2026-task3 | scripts/export_deck_data.py | Python | 913d916d7b893a825f9e5f12612ca3a254031b47acbfaf342c779a2ec5569c4e | 5 | 896 |
": -2.04, "std": 0.489, "min": -4.07, "max": -0.19},
{"feature": "Mel Spect.", "mean": 4.517, "std": 1.525, "min": 0.000, "max": 8.887},
],
"correlation": {"labels": corr_labels, "matrix": corr},
},
"tsne": {"points": tsne_points},
}
def main():
OUT_PATH... | mlpc-2026-task3 | scripts/export_deck_data.py | Python | 9753b5c2df5a44a4cd566fec0949fae65b295c9a41b46c47822476dc6bddbe0a | 6 | 183 |
"""Section 2: Annotations Analysis for MLPC 2026 Task 3.
Generates all figures and prints statistics for Section 2 of the report:
2a: Annotator agreement (IoU-based)
2b: Label aggregation (mean threshold)
2c: Label characteristics (frequency, co-occurrence)
"""
import sys
import numpy as np
import pandas as pd
... | mlpc-2026-task3 | scripts/section2_annotations.py | Python | bedc9ef506fce37cf7b5ba574aa67266b876fe2b8793fafd2759c6fedc543c83 | 0 | 896 |
m)
print(f"{name:<30s} {m:>10.3f} {len(all_class_ious[c]):>10d}")
else:
class_mean_ious.append(np.nan)
print(f"{name:<30s} {'N/A':>10s} {'0':>10s}")
overall = np.nanmean(class_mean_ious)
print(f"\n{'Overall mean':<30s} {overall:>10.3f}")
# Own vs other
own_m... | mlpc-2026-task3 | scripts/section2_annotations.py | Python | b7562b6ee30185a66054e4e743716d206241f73a6d47cee71866fcc0d72c2949 | 1 | 896 |
" * 60)
plt = setup_plotting()
import seaborn as sns
class_segments = np.zeros(15, dtype=int)
cooccurrence = np.zeros((15, 15), dtype=int)
env_class_counts = defaultdict(lambda: np.zeros(15, dtype=int))
total_segments = 0
for fname, npz in iter_npz_files():
ann = npz["annotations... | mlpc-2026-task3 | scripts/section2_annotations.py | Python | 1980ca8ec3c60e44022c94796795254ac2579dd6ad4c08a04cf2a58460efc81e | 2 | 869 |
"""Section 3: Audio Features Analysis for MLPC 2026 Task 3.
Generates all figures and prints statistics for Section 3 of the report:
3a: Metadata distribution (devices, placement, environments)
3b: Feature statistics (mean, std, min, max per feature group)
3c: Feature correlation (heatmap of feature group correl... | mlpc-2026-task3 | scripts/section3_features.py | Python | b785afd80bec12454c2abd19cf4a23c308ff47b0f922f5aabb2469ff8ad1d312 | 0 | 896 |
set_xlabel("Count")
axes[2].set_title("Environments")
plt.tight_layout()
fig.savefig(str(FIGURES_DIR / "metadata_distribution.pdf"))
plt.close()
print(f"\nSaved: figures/metadata_distribution.pdf")
def section_3b():
"""Compute feature statistics across the entire dataset."""
print("\n" + ... | mlpc-2026-task3 | scripts/section3_features.py | Python | 1a47f624b7856424c00af6d85e821f203edd40d9ed10e5c6a120beed5f77b9b1 | 1 | 896 |
axis=1)
else:
vals = arr[:, 0]
all_features[name].append(vals)
# Build dataframe
data = {}
for name, _ in corr_features:
data[name] = np.concatenate(all_features[name])
df = pd.DataFrame(data)
corr_matrix = df.corr()
print(f"\nCorrelation matrix ... | mlpc-2026-task3 | scripts/section3_features.py | Python | c54d59c8666e852f8e6152331e729ea805bf2a7f36f66499426de05010822ee9 | 2 | 896 |
Subsample if too large (cap at 10000 for t-SNE speed)
if len(X) > 10000:
rng = np.random.RandomState(42)
idx = rng.choice(len(X), 10000, replace=False)
X = X[idx]
y = y[idx]
print(f"Subsampled to {len(X)}")
# Remove NaN/Inf
valid = np.all(np.isfinite(X), axis=1)
... | mlpc-2026-task3 | scripts/section3_features.py | Python | 4a642f1834a7fd04dcbd0e9d32bd92d787652574021e9dbf6f98aa4250d98597 | 3 | 896 |
close()
print(f"Saved: figures/features_combined.pdf")
plt.tight_layout()
fig.savefig(str(FIGURES_DIR / "tsne_features.pdf"))
plt.close()
print(f"Saved: figures/tsne_features.pdf")
if __name__ == "__main__":
section_3a()
section_3b()
corr_matrix = section_3c()
X_2d, y, present_clas... | mlpc-2026-task3 | scripts/section3_features.py | Python | 9a8cb16ad7dd8cb64e1b184eff42ef5b336a49047f1a52dde68f23998b2ca4a9 | 4 | 115 |
"""Shared utilities for MLPC 2026 Task 3 data exploration."""
import os
import numpy as np
import pandas as pd
from pathlib import Path
PROJECT_DIR = Path(__file__).resolve().parent.parent
DATA_DIR = PROJECT_DIR / "MLPC2026_dataset_development"
FIGURES_DIR = PROJECT_DIR / "figures"
NPZ_DIR = DATA_DIR / "audio_feature... | mlpc-2026-task3 | scripts/utils.py | Python | c23a29cc8ec9560104ea992f0f086745118d65b40e317d53cfca0ad85e447d1a | 0 | 529 |
# MLPC 2026 Task 3 — interactive slide deck
## Run locally
```bash
cd slides-template/interiorly-pitch-master
npm install
npm run dev
```
Open `/en` (or `/de`) — slides use `?slide=N` in the URL.
## Deck data (`data/mlpc-deck-data.json`)
Charts and tables read from committed JSON. Regenerate from the course datase... | mlpc-2026-task3 | slides-template/interiorly-pitch-master/DECK.md | Markdown | 947466e238ec8de5efd965fbb491f9891f9dff73b713ae8a0b5e600f9a40d9a9 | 0 | 310 |
import type { Config } from "tailwindcss";
import { fontFamily } from "tailwindcss/defaultTheme";
const {
default: flattenColorPalette,
} = require("tailwindcss/lib/util/flattenColorPalette");
const config = {
darkMode: ["class"],
content: [
"./pages/**/*.{ts,tsx}",
"./components/**/*.{ts,tsx}",
"./a... | mlpc-2026-task3 | slides-template/interiorly-pitch-master/tailwind.config.ts | TypeScript | 9545017c896c7020e7e07b6f56eea0445cc55aedc20e6579304c1dd3308006da | 0 | 896 |
import PitchCarousel from "@/components/pitch/pitch-carousel";
import { Grid } from "@/components/pitch/ui";
import { MLPC_SLIDE_KEYS } from "@/components/deck/outline";
export default function MlpcSlidesPage() {
return (
<div className="fixed bottom-0 left-0 right-0 top-0 h-screen bg-background text-white">
... | mlpc-2026-task3 | slides-template/interiorly-pitch-master/app/[locale]/(v1)/page.tsx | TypeScript | cb5a8137291dcb1b6658ebe807bda1b334328033d63acd1cef9f8299be7d5ee6 | 0 | 119 |
"use client";
import { useMotionValueEvent, useSpring } from "framer-motion";
import { useEffect, useState } from "react";
export function AnimatedMetric({
value,
decimals = 2,
className,
}: {
value: number;
decimals?: number;
className?: string;
}) {
const spring = useSpring(value, { stiffness: 140, da... | mlpc-2026-task3 | slides-template/interiorly-pitch-master/components/deck/animated-metric.tsx | TypeScript | 14ba4b8171452195e4d241c386aa97753210704577679f115d6782a878c92b8e | 0 | 169 |
"use client";
import { useMemo, useState } from "react";
import { mlpcDeckData, CLASS_COLOR } from "@/lib/mlpc-deck-data";
import { SHORT_CLASS_LABELS } from "@/lib/class-labels";
import { cn } from "@/lib/utils";
function heatColor(v: number, vmax: number) {
const t = vmax > 0 ? Math.min(1, v / vmax) : 0;
const ... | mlpc-2026-task3 | slides-template/interiorly-pitch-master/components/deck/cooccurrence-heatmap.tsx | TypeScript | 8bfbbe9565f50badc508c6a1ddf7317b324f6da9e7da6da43e711ceca2e539ca | 0 | 896 |
text-xs text-muted-foreground">
Row{" "}
<span
className="font-medium text-foreground"
style={{
color: CLASS_COLOR[mlpcDeckData.labels.classSegments[selected]?.class ?? ""],
}}
>
{mlpcDeckData.labels.classSegments[selected]?.cla... | mlpc-2026-task3 | slides-template/interiorly-pitch-master/components/deck/cooccurrence-heatmap.tsx | TypeScript | ecb083a64a8e60f0cd0e3503c0723763556e00b087e8645f255e27a96040debe | 1 | 110 |
"use client";
import { useState } from "react";
import { mlpcDeckData } from "@/lib/mlpc-deck-data";
function color(r: number) {
const t = (r + 1) / 2;
const h = 220 * (1 - t);
const l = 42 + Math.abs(r) * 18;
const s = 65;
return `hsl(${h} ${s}% ${l}%)`;
}
export function CorrelationHeatmap() {
const { ... | mlpc-2026-task3 | slides-template/interiorly-pitch-master/components/deck/correlation-heatmap.tsx | TypeScript | 558619c8dfa7424afc6a433fc494999f694350831dfb9cf45f585285f590cdb4 | 0 | 744 |
"use client";
import { useRef, useEffect, useState, useCallback, useMemo } from "react";
import * as d3 from "d3";
import { mlpcDeckData, CLASS_COLOR } from "@/lib/mlpc-deck-data";
const W = 520;
const H = 400;
const PAD = { top: 10, right: 50, bottom: 30, left: 150 };
export function D3AgreementChart() {
const sv... | mlpc-2026-task3 | slides-template/interiorly-pitch-master/components/deck/d3-agreement-chart.tsx | TypeScript | 2058a92283bb45ae17f2af489aa8394fdffc9b184f01fd443761b457cd6bace0 | 0 | 896 |
)
.attr("y", (d) => yScale(d.name)! + yScale.bandwidth() / 2 + 3)
.style("fill", "hsl(var(--foreground))")
.style("font-size", "9px")
.style("font-family", "monospace")
.text((d) => d.iou.toFixed(3));
if (!animated) {
labels
.attr("x", PAD.left + 4)
.attr("opacit... | mlpc-2026-task3 | slides-template/interiorly-pitch-master/components/deck/d3-agreement-chart.tsx | TypeScript | af28dc5b9981580e70a99f82cc2f567feea4250fcf8cd31345dafd914466f14b | 1 | 274 |
"use client";
import { useRef, useEffect, useState, useCallback, useMemo } from "react";
import * as d3 from "d3";
import { mlpcDeckData, CLASS_COLOR } from "@/lib/mlpc-deck-data";
const W = 440;
const H = 340;
const PAD = { top: 10, right: 40, bottom: 20, left: 150 };
export function D3ClassFrequency() {
const sv... | mlpc-2026-task3 | slides-template/interiorly-pitch-master/components/deck/d3-class-frequency.tsx | TypeScript | 52a460d0119f83c0e138b5dd01a8baf2ded6744f9cd743d4916aa7b9b4ad9476 | 0 | 896 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.