Skip to content

Commit b6ae741

Browse files
committed
modified: .github/workflows/pages.yml
modified: README.md modified: docs/index.html modified: target/jacoco.exec modified: target/site/jacoco/jacoco-sessions.html modified: target/site/jacoco/jacoco.xml modified: target/surefire-reports/TEST-com.semanticprivacyguard.HeuristicDetectorTest$ApiKeyTests.xml modified: target/surefire-reports/TEST-com.semanticprivacyguard.HeuristicDetectorTest$CreditCardTests.xml modified: target/surefire-reports/TEST-com.semanticprivacyguard.HeuristicDetectorTest$EmailTests.xml modified: target/surefire-reports/TEST-com.semanticprivacyguard.HeuristicDetectorTest$IBANTests.xml modified: target/surefire-reports/TEST-com.semanticprivacyguard.HeuristicDetectorTest$IPTests.xml modified: target/surefire-reports/TEST-com.semanticprivacyguard.HeuristicDetectorTest$PasswordTests.xml modified: target/surefire-reports/TEST-com.semanticprivacyguard.HeuristicDetectorTest$PhoneTests.xml modified: target/surefire-reports/TEST-com.semanticprivacyguard.HeuristicDetectorTest$SSNTests.xml modified: target/surefire-reports/TEST-com.semanticprivacyguard.HeuristicDetectorTest.xml modified: target/surefire-reports/TEST-com.semanticprivacyguard.MLDetectorTest.xml modified: target/surefire-reports/TEST-com.semanticprivacyguard.SemanticPrivacyGuardTest.xml modified: target/surefire-reports/com.semanticprivacyguard.HeuristicDetectorTest$EmailTests.txt modified: target/surefire-reports/com.semanticprivacyguard.HeuristicDetectorTest$SSNTests.txt modified: target/surefire-reports/com.semanticprivacyguard.SemanticPrivacyGuardTest.txt
1 parent 4143c32 commit b6ae741

20 files changed

+84
-84
lines changed

.github/workflows/pages.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: Deploy GitHub Pages
33
on:
44
push:
55
branches: [ "main" ]
6-
paths:
7-
- "docs/**"
8-
- ".github/workflows/pages.yml"
96
workflow_dispatch:
107

118
permissions:
@@ -35,7 +32,9 @@ jobs:
3532
- name: Upload artifact
3633
uses: actions/upload-pages-artifact@v3
3734
with:
38-
path: "./docs"
35+
# Deploy the full repository root so docs/index.html is served at
36+
# https://sushegaad.github.io/Semantic-Privacy-Guard/docs/index.html
37+
path: "."
3938

4039
- name: Deploy to GitHub Pages
4140
id: deployment

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[![Zero deps](https://img.shields.io/badge/runtime%20deps-0-brightgreen)](#)
77
[![License](https://img.shields.io/badge/license-Apache%202.0-blue)](LICENSE)
88
[![Security Policy](https://img.shields.io/badge/security-policy-orange)](SECURITY.md)
9-
[![Live Playground](https://img.shields.io/badge/playground-live-brightgreen)](https://sushegaad.github.io/Semantic-Privacy-Guard/)
9+
[![Live Playground](https://img.shields.io/badge/playground-live-brightgreen)](https://sushegaad.github.io/Semantic-Privacy-Guard/docs/index.html)
1010

1111
> **A lightweight, zero-dependency Java middleware that intercepts LLM prompts,
1212
> identifies PII using a hybrid Regex + Naive Bayes approach, and redacts it
@@ -16,9 +16,10 @@
1616

1717
## 🚀 Live Playground
1818

19-
**[Try it in your browser →](https://sushegaad.github.io/Semantic-Privacy-Guard/)**
19+
**[Try it in your browser →](https://sushegaad.github.io/Semantic-Privacy-Guard/docs/index.html)**
2020

2121
Paste any text, choose a redaction mode, and see instant results — 100% client-side, nothing sent to any server.
22+
2223
---
2324

2425
## Why Semantic Privacy Guard?
@@ -263,7 +264,7 @@ SPG has zero runtime dependencies, eliminating supply-chain attack vectors. All
263264

264265
## Docs
265266

266-
- [Live Playground](https://sushegaad.github.io/Semantic-Privacy-Guard/) — try SPG in your browser
267+
- [Live Playground](https://sushegaad.github.io/Semantic-Privacy-Guard/docs/index.html) — try SPG in your browser
267268
- [Regex Design Decisions](docs/regex-design.md) — why SSN excludes `9xx`, Luhn validation, entropy filtering
268269
- [Benchmarks](docs/benchmarks.md) — throughput and accuracy vs alternatives
269270
- [Security Policy](SECURITY.md) — CVE process, disclosure timeline, scope

docs/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@
323323
<span class="badge">Zero deps</span>
324324
<span class="badge">Apache 2.0</span>
325325
<a class="badge" href="https://github.com/Sushegaad/Semantic-Privacy-Guard" target="_blank">⭐ GitHub</a>
326-
<a class="badge blue" href="https://sushegaad.github.io/Semantic-Privacy-Guard/" target="_blank">🔗 Playground</a>
326+
<a class="badge blue" href="https://sushegaad.github.io/Semantic-Privacy-Guard/docs/index.html" target="_blank">🔗 Playground</a>
327327
</div>
328328
</header>
329329

@@ -465,8 +465,8 @@ <h2>How It Works</h2>
465465
<footer>
466466
Semantic Privacy Guard v1.0.0 · Apache 2.0 ·
467467
<a href="https://github.com/Sushegaad/Semantic-Privacy-Guard" target="_blank">GitHub</a> ·
468-
<a href="https://sushegaad.github.io/Semantic-Privacy-Guard/regex-design.md" target="_blank">Regex Design</a> ·
469-
<a href="https://sushegaad.github.io/Semantic-Privacy-Guard/benchmarks.md" target="_blank">Benchmarks</a> ·
468+
<a href="https://sushegaad.github.io/Semantic-Privacy-Guard/docs/index.htmlregex-design.md" target="_blank">Regex Design</a> ·
469+
<a href="https://sushegaad.github.io/Semantic-Privacy-Guard/docs/index.htmlbenchmarks.md" target="_blank">Benchmarks</a> ·
470470
<a href="https://github.com/Sushegaad/Semantic-Privacy-Guard/blob/main/SECURITY.md" target="_blank">Security Policy</a>
471471
<br><small style="margin-top:.4rem;display:block">
472472
⚠️ This playground runs entirely in your browser — no text is ever transmitted to any server.

target/jacoco.exec

28.3 KB
Binary file not shown.

target/site/jacoco/jacoco-sessions.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

target/site/jacoco/jacoco.xml

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

target/surefire-reports/TEST-com.semanticprivacyguard.HeuristicDetectorTest$ApiKeyTests.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<property name="sun.java.launcher" value="SUN_STANDARD"/>
1313
<property name="user.country" value="US"/>
1414
<property name="sun.boot.library.path" value="/Library/Java/JavaVirtualMachines/temurin-25.jdk/Contents/Home/lib"/>
15-
<property name="sun.java.command" value="/Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard/target/surefire/surefirebooter-20260303191508092_3.jar /Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard/target/surefire 2026-03-03T19-15-08_063-jvmRun1 surefire-20260303191508092_1tmp surefire_0-20260303191508092_2tmp"/>
15+
<property name="sun.java.command" value="/Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard/target/surefire/surefirebooter-20260303193422877_3.jar /Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard/target/surefire 2026-03-03T19-34-22_848-jvmRun1 surefire-20260303193422877_1tmp surefire_0-20260303193422877_2tmp"/>
1616
<property name="http.nonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
1717
<property name="jdk.debug" value="release"/>
1818
<property name="surefire.test.class.path" value="/Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard/target/test-classes:/Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard/target/classes:/Users/varsha/.m2/repository/org/junit/jupiter/junit-jupiter/5.10.2/junit-jupiter-5.10.2.jar:/Users/varsha/.m2/repository/org/junit/jupiter/junit-jupiter-api/5.10.2/junit-jupiter-api-5.10.2.jar:/Users/varsha/.m2/repository/org/opentest4j/opentest4j/1.3.0/opentest4j-1.3.0.jar:/Users/varsha/.m2/repository/org/junit/platform/junit-platform-commons/1.10.2/junit-platform-commons-1.10.2.jar:/Users/varsha/.m2/repository/org/apiguardian/apiguardian-api/1.1.2/apiguardian-api-1.1.2.jar:/Users/varsha/.m2/repository/org/junit/jupiter/junit-jupiter-params/5.10.2/junit-jupiter-params-5.10.2.jar:/Users/varsha/.m2/repository/org/junit/jupiter/junit-jupiter-engine/5.10.2/junit-jupiter-engine-5.10.2.jar:/Users/varsha/.m2/repository/org/junit/platform/junit-platform-engine/1.10.2/junit-platform-engine-1.10.2.jar:"/>
@@ -24,12 +24,12 @@
2424
<property name="java.home" value="/Library/Java/JavaVirtualMachines/temurin-25.jdk/Contents/Home"/>
2525
<property name="file.separator" value="/"/>
2626
<property name="basedir" value="/Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard"/>
27-
<property name="java.vm.compressedOopsMode" value="Zero based"/>
27+
<property name="java.vm.compressedOopsMode" value="Non-zero disjoint base"/>
2828
<property name="line.separator" value="&#10;"/>
2929
<property name="java.vm.specification.vendor" value="Oracle Corporation"/>
3030
<property name="java.specification.name" value="Java Platform API Specification"/>
3131
<property name="apple.awt.application.name" value="ForkedBooter"/>
32-
<property name="surefire.real.class.path" value="/Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard/target/surefire/surefirebooter-20260303191508092_3.jar"/>
32+
<property name="surefire.real.class.path" value="/Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard/target/surefire/surefirebooter-20260303193422877_3.jar"/>
3333
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
3434
<property name="ftp.nonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
3535
<property name="java.runtime.version" value="25.0.2+10-LTS"/>
@@ -59,7 +59,7 @@
5959
<property name="socksNonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
6060
<property name="java.class.version" value="69.0"/>
6161
</properties>
62-
<testcase name="detectsAwsKey" classname="com.semanticprivacyguard.HeuristicDetectorTest$ApiKeyTests" time="0.0"/>
63-
<testcase name="detectsGitHubToken" classname="com.semanticprivacyguard.HeuristicDetectorTest$ApiKeyTests" time="0.0"/>
62+
<testcase name="detectsAwsKey" classname="com.semanticprivacyguard.HeuristicDetectorTest$ApiKeyTests" time="0.001"/>
63+
<testcase name="detectsGitHubToken" classname="com.semanticprivacyguard.HeuristicDetectorTest$ApiKeyTests" time="0.001"/>
6464
<testcase name="detectsOpenAIKey" classname="com.semanticprivacyguard.HeuristicDetectorTest$ApiKeyTests" time="0.001"/>
6565
</testsuite>

target/surefire-reports/TEST-com.semanticprivacyguard.HeuristicDetectorTest$CreditCardTests.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<property name="sun.java.launcher" value="SUN_STANDARD"/>
1313
<property name="user.country" value="US"/>
1414
<property name="sun.boot.library.path" value="/Library/Java/JavaVirtualMachines/temurin-25.jdk/Contents/Home/lib"/>
15-
<property name="sun.java.command" value="/Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard/target/surefire/surefirebooter-20260303191508092_3.jar /Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard/target/surefire 2026-03-03T19-15-08_063-jvmRun1 surefire-20260303191508092_1tmp surefire_0-20260303191508092_2tmp"/>
15+
<property name="sun.java.command" value="/Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard/target/surefire/surefirebooter-20260303193422877_3.jar /Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard/target/surefire 2026-03-03T19-34-22_848-jvmRun1 surefire-20260303193422877_1tmp surefire_0-20260303193422877_2tmp"/>
1616
<property name="http.nonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
1717
<property name="jdk.debug" value="release"/>
1818
<property name="surefire.test.class.path" value="/Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard/target/test-classes:/Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard/target/classes:/Users/varsha/.m2/repository/org/junit/jupiter/junit-jupiter/5.10.2/junit-jupiter-5.10.2.jar:/Users/varsha/.m2/repository/org/junit/jupiter/junit-jupiter-api/5.10.2/junit-jupiter-api-5.10.2.jar:/Users/varsha/.m2/repository/org/opentest4j/opentest4j/1.3.0/opentest4j-1.3.0.jar:/Users/varsha/.m2/repository/org/junit/platform/junit-platform-commons/1.10.2/junit-platform-commons-1.10.2.jar:/Users/varsha/.m2/repository/org/apiguardian/apiguardian-api/1.1.2/apiguardian-api-1.1.2.jar:/Users/varsha/.m2/repository/org/junit/jupiter/junit-jupiter-params/5.10.2/junit-jupiter-params-5.10.2.jar:/Users/varsha/.m2/repository/org/junit/jupiter/junit-jupiter-engine/5.10.2/junit-jupiter-engine-5.10.2.jar:/Users/varsha/.m2/repository/org/junit/platform/junit-platform-engine/1.10.2/junit-platform-engine-1.10.2.jar:"/>
@@ -24,12 +24,12 @@
2424
<property name="java.home" value="/Library/Java/JavaVirtualMachines/temurin-25.jdk/Contents/Home"/>
2525
<property name="file.separator" value="/"/>
2626
<property name="basedir" value="/Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard"/>
27-
<property name="java.vm.compressedOopsMode" value="Zero based"/>
27+
<property name="java.vm.compressedOopsMode" value="Non-zero disjoint base"/>
2828
<property name="line.separator" value="&#10;"/>
2929
<property name="java.vm.specification.vendor" value="Oracle Corporation"/>
3030
<property name="java.specification.name" value="Java Platform API Specification"/>
3131
<property name="apple.awt.application.name" value="ForkedBooter"/>
32-
<property name="surefire.real.class.path" value="/Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard/target/surefire/surefirebooter-20260303191508092_3.jar"/>
32+
<property name="surefire.real.class.path" value="/Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard/target/surefire/surefirebooter-20260303193422877_3.jar"/>
3333
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
3434
<property name="ftp.nonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
3535
<property name="java.runtime.version" value="25.0.2+10-LTS"/>

target/surefire-reports/TEST-com.semanticprivacyguard.HeuristicDetectorTest$EmailTests.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<testsuite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://maven.apache.org/surefire/maven-surefire-plugin/xsd/surefire-test-report-3.0.xsd" version="3.0" name="com.semanticprivacyguard.HeuristicDetectorTest$EmailTests" time="0.005" tests="6" errors="0" skipped="0" failures="0">
2+
<testsuite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://maven.apache.org/surefire/maven-surefire-plugin/xsd/surefire-test-report-3.0.xsd" version="3.0" name="com.semanticprivacyguard.HeuristicDetectorTest$EmailTests" time="0.006" tests="6" errors="0" skipped="0" failures="0">
33
<properties>
44
<property name="java.specification.version" value="25"/>
55
<property name="sun.jnu.encoding" value="UTF-8"/>
@@ -12,7 +12,7 @@
1212
<property name="sun.java.launcher" value="SUN_STANDARD"/>
1313
<property name="user.country" value="US"/>
1414
<property name="sun.boot.library.path" value="/Library/Java/JavaVirtualMachines/temurin-25.jdk/Contents/Home/lib"/>
15-
<property name="sun.java.command" value="/Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard/target/surefire/surefirebooter-20260303191508092_3.jar /Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard/target/surefire 2026-03-03T19-15-08_063-jvmRun1 surefire-20260303191508092_1tmp surefire_0-20260303191508092_2tmp"/>
15+
<property name="sun.java.command" value="/Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard/target/surefire/surefirebooter-20260303193422877_3.jar /Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard/target/surefire 2026-03-03T19-34-22_848-jvmRun1 surefire-20260303193422877_1tmp surefire_0-20260303193422877_2tmp"/>
1616
<property name="http.nonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
1717
<property name="jdk.debug" value="release"/>
1818
<property name="surefire.test.class.path" value="/Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard/target/test-classes:/Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard/target/classes:/Users/varsha/.m2/repository/org/junit/jupiter/junit-jupiter/5.10.2/junit-jupiter-5.10.2.jar:/Users/varsha/.m2/repository/org/junit/jupiter/junit-jupiter-api/5.10.2/junit-jupiter-api-5.10.2.jar:/Users/varsha/.m2/repository/org/opentest4j/opentest4j/1.3.0/opentest4j-1.3.0.jar:/Users/varsha/.m2/repository/org/junit/platform/junit-platform-commons/1.10.2/junit-platform-commons-1.10.2.jar:/Users/varsha/.m2/repository/org/apiguardian/apiguardian-api/1.1.2/apiguardian-api-1.1.2.jar:/Users/varsha/.m2/repository/org/junit/jupiter/junit-jupiter-params/5.10.2/junit-jupiter-params-5.10.2.jar:/Users/varsha/.m2/repository/org/junit/jupiter/junit-jupiter-engine/5.10.2/junit-jupiter-engine-5.10.2.jar:/Users/varsha/.m2/repository/org/junit/platform/junit-platform-engine/1.10.2/junit-platform-engine-1.10.2.jar:"/>
@@ -24,12 +24,12 @@
2424
<property name="java.home" value="/Library/Java/JavaVirtualMachines/temurin-25.jdk/Contents/Home"/>
2525
<property name="file.separator" value="/"/>
2626
<property name="basedir" value="/Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard"/>
27-
<property name="java.vm.compressedOopsMode" value="Zero based"/>
27+
<property name="java.vm.compressedOopsMode" value="Non-zero disjoint base"/>
2828
<property name="line.separator" value="&#10;"/>
2929
<property name="java.vm.specification.vendor" value="Oracle Corporation"/>
3030
<property name="java.specification.name" value="Java Platform API Specification"/>
3131
<property name="apple.awt.application.name" value="ForkedBooter"/>
32-
<property name="surefire.real.class.path" value="/Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard/target/surefire/surefirebooter-20260303191508092_3.jar"/>
32+
<property name="surefire.real.class.path" value="/Users/varsha/GitHub-Repository-Destination/Semantic-Privacy-Guard/Semantic-Privacy-Guard/target/surefire/surefirebooter-20260303193422877_3.jar"/>
3333
<property name="sun.management.compiler" value="HotSpot 64-Bit Tiered Compilers"/>
3434
<property name="ftp.nonProxyHosts" value="local|*.local|169.254/16|*.169.254/16"/>
3535
<property name="java.runtime.version" value="25.0.2+10-LTS"/>
@@ -60,9 +60,9 @@
6060
<property name="java.class.version" value="69.0"/>
6161
</properties>
6262
<testcase name="detectsEmails(String)[1]" classname="com.semanticprivacyguard.HeuristicDetectorTest$EmailTests" time="0.001"/>
63-
<testcase name="detectsEmails(String)[2]" classname="com.semanticprivacyguard.HeuristicDetectorTest$EmailTests" time="0.001"/>
63+
<testcase name="detectsEmails(String)[2]" classname="com.semanticprivacyguard.HeuristicDetectorTest$EmailTests" time="0.0"/>
6464
<testcase name="detectsEmails(String)[3]" classname="com.semanticprivacyguard.HeuristicDetectorTest$EmailTests" time="0.0"/>
65-
<testcase name="rejectsNonEmails(String)[1]" classname="com.semanticprivacyguard.HeuristicDetectorTest$EmailTests" time="0.001"/>
66-
<testcase name="rejectsNonEmails(String)[2]" classname="com.semanticprivacyguard.HeuristicDetectorTest$EmailTests" time="0.001"/>
65+
<testcase name="rejectsNonEmails(String)[1]" classname="com.semanticprivacyguard.HeuristicDetectorTest$EmailTests" time="0.0"/>
66+
<testcase name="rejectsNonEmails(String)[2]" classname="com.semanticprivacyguard.HeuristicDetectorTest$EmailTests" time="0.0"/>
6767
<testcase name="rejectsNonEmails(String)[3]" classname="com.semanticprivacyguard.HeuristicDetectorTest$EmailTests" time="0.0"/>
6868
</testsuite>

0 commit comments

Comments
 (0)