asgroi commited on
Commit
2d074c3
·
verified ·
1 Parent(s): bfeb9e4

Upload 6 files

Browse files
canonical_manifest_final.json ADDED
@@ -0,0 +1,291 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": "phishing_email_curated",
3
+ "version": "v1",
4
+ "description": "Phishing Email Curated Datasets (Champa et al. 2024)",
5
+ "source_url": "https://doi.org/10.6084/m9.figshare.25437178.v1",
6
+ "generated_at": "2026-04-30T16:16:26.279487+00:00",
7
+ "status": "complete",
8
+ "phases_completed": [
9
+ 1,
10
+ 2
11
+ ],
12
+ "final_dataset": {
13
+ "rows": 181907,
14
+ "features": 53,
15
+ "label_mapping": {
16
+ "0": "legitimate",
17
+ "1": "phishing"
18
+ },
19
+ "outputs": {
20
+ "npz": "06_final\\email_clean.npz",
21
+ "X_npy": "06_final\\email_clean_X.npy",
22
+ "y_npy": "06_final\\email_clean_y.npy",
23
+ "metadata_parquet": "06_final\\email_clean_metadata.parquet"
24
+ }
25
+ },
26
+ "schema_mapping": {
27
+ "raw_to_standard": {
28
+ "record_id": "sample_id",
29
+ "sha256": "sha256",
30
+ "label": "label_int"
31
+ },
32
+ "raw_to_namespaced": {
33
+ "source_file": "email_source_file",
34
+ "sender": "email_sender",
35
+ "receiver": "email_receiver",
36
+ "date": "email_date",
37
+ "subject": "email_subject",
38
+ "urls_flag": "email_urls_flag",
39
+ "has_header": "email_has_header",
40
+ "id_source": "email_id_source"
41
+ },
42
+ "derived_columns": {
43
+ "label_str": {
44
+ "0": "legitimate",
45
+ "1": "phishing"
46
+ },
47
+ "timestamp": null
48
+ }
49
+ },
50
+ "policies": {
51
+ "phase1": {
52
+ "primary_hash": "sha256",
53
+ "secondary_hash": null,
54
+ "hash_type": "sha256",
55
+ "timestamp_policy": "timestamp missing is allowed for email datasets and flagged explicitly"
56
+ },
57
+ "phase2": {
58
+ "dataset": "phishing_email_curated",
59
+ "version": "v1",
60
+ "phase": 2,
61
+ "dedup_policy": {
62
+ "primary_key": "email_id_source",
63
+ "hash_key": "sha256",
64
+ "keep_strategy": "lowest_sample_id",
65
+ "rows_before": 217204,
66
+ "rows_after": 181907,
67
+ "rows_dropped": 35297,
68
+ "feature_duplicate_mode": "report_only_non_url_duplicates",
69
+ "remaining_non_url_feature_duplicate_groups": 956
70
+ },
71
+ "constant_feature_policy": {
72
+ "removed_constant_features": 0,
73
+ "features_after": 53
74
+ },
75
+ "alignment_check_note": "Post-dedup alignment check (Step 2.1C) is incorporated in Step 2.1B which verifies label_int consistency between y array and metadata before writing output.",
76
+ "missing_policy": {
77
+ "nonfinite_strategy": "fail_if_any",
78
+ "fill_value": 0.0,
79
+ "allow_nan": false,
80
+ "allow_inf": false,
81
+ "profile_summary_path": "C:\\Users\\vincenzo.m.russiello\\Desktop\\Documenti\\ACN\\AI Factory\\Phishing Email Curated Datasets\\Phishing Email Curated Datasets_cleaned\\05_reports\\phase2\\step_2_3A_summary.json",
82
+ "input_npz": "C:\\Users\\vincenzo.m.russiello\\Desktop\\Documenti\\ACN\\AI Factory\\Phishing Email Curated Datasets\\Phishing Email Curated Datasets_cleaned\\03_cleaned\\email_phase2_noconst.npz",
83
+ "input_metadata": "C:\\Users\\vincenzo.m.russiello\\Desktop\\Documenti\\ACN\\AI Factory\\Phishing Email Curated Datasets\\Phishing Email Curated Datasets_cleaned\\03_cleaned\\metadata_phase2_noconst.parquet"
84
+ },
85
+ "label_policy": {
86
+ "step": "2.4_final_label_normalization",
87
+ "final_label_mapping": {
88
+ "0": "legitimate",
89
+ "1": "phishing"
90
+ },
91
+ "incoming_label_mapping": {
92
+ "0": "legitimate",
93
+ "1": "phishing"
94
+ },
95
+ "require_alignment_between_y_and_metadata": true,
96
+ "fail_on_unknown_labels": true,
97
+ "input_npz": "C:\\Users\\vincenzo.m.russiello\\Desktop\\Documenti\\ACN\\AI Factory\\Phishing Email Curated Datasets\\Phishing Email Curated Datasets_cleaned\\03_cleaned\\email_phase2_nomissing.npz",
98
+ "input_metadata": "C:\\Users\\vincenzo.m.russiello\\Desktop\\Documenti\\ACN\\AI Factory\\Phishing Email Curated Datasets\\Phishing Email Curated Datasets_cleaned\\03_cleaned\\metadata_phase2_nomissing.parquet",
99
+ "input_label_mapping": "C:\\Users\\vincenzo.m.russiello\\Desktop\\Documenti\\ACN\\AI Factory\\Phishing Email Curated Datasets\\Phishing Email Curated Datasets_cleaned\\04_manifests\\label_mapping.json"
100
+ }
101
+ }
102
+ },
103
+ "phase1": {
104
+ "manifest_ref": "04_manifests\\canonical_manifest_phase1.json",
105
+ "summary": {
106
+ "rows": 217204,
107
+ "primary_hash": "sha256",
108
+ "hash_type": "sha256",
109
+ "label_mapping": {
110
+ "0": "legitimate",
111
+ "1": "phishing"
112
+ },
113
+ "duplicate_primary_hash_groups": 17919,
114
+ "duplicate_url_norm_groups": 17919,
115
+ "duplicate_feature_fingerprint_groups": 9636,
116
+ "artifact_checks_passed": true
117
+ }
118
+ },
119
+ "phase2": {
120
+ "manifest_ref": "04_manifests\\canonical_manifest_phase2.json",
121
+ "summary": {
122
+ "step_2_1A": {
123
+ "duplicate_url_groups": 17919,
124
+ "url_label_conflict_groups": 66,
125
+ "duplicate_feature_groups": 9636,
126
+ "feature_label_conflict_groups": 8
127
+ },
128
+ "step_2_1B": {
129
+ "rows_before": 217204,
130
+ "rows_after": 181907,
131
+ "rows_dropped": 35297,
132
+ "remaining_non_url_feature_duplicate_groups": 956,
133
+ "remaining_non_url_feature_duplicate_rows": 3392
134
+ },
135
+ "step_2_2B": {
136
+ "constant_features": 0,
137
+ "features_after": 53
138
+ },
139
+ "step_2_3": {
140
+ "nonfinite_rows_profile": 0,
141
+ "nonfinite_rows_detected": 0,
142
+ "final_nonfinite_rows": 0
143
+ },
144
+ "step_2_4": {
145
+ "labels_before": {
146
+ "0": 87337,
147
+ "1": 94570
148
+ },
149
+ "labels_after": {
150
+ "0": 87337,
151
+ "1": 94570
152
+ },
153
+ "label_mapping_changed": false
154
+ }
155
+ }
156
+ },
157
+ "artifacts": {
158
+ "phase2_labelnorm_npz": {
159
+ "path": "03_cleaned/email_phase2_labelnorm.npz",
160
+ "exists": true,
161
+ "size_bytes": 1246
162
+ },
163
+ "phase2_labelnorm_X_npy": {
164
+ "path": "03_cleaned/email_phase2_labelnorm_X.npy",
165
+ "exists": true,
166
+ "size_bytes": 38564412
167
+ },
168
+ "phase2_labelnorm_y_npy": {
169
+ "path": "03_cleaned/email_phase2_labelnorm_y.npy",
170
+ "exists": true,
171
+ "size_bytes": 727756
172
+ },
173
+ "phase2_labelnorm_metadata": {
174
+ "path": "03_cleaned/metadata_phase2_labelnorm.parquet",
175
+ "exists": true,
176
+ "size_bytes": 54643289
177
+ },
178
+ "label_mapping_final": {
179
+ "path": "04_manifests/label_mapping_final.json",
180
+ "exists": true,
181
+ "size_bytes": 45
182
+ },
183
+ "schema_mapping": {
184
+ "path": "04_manifests/schema_mapping.json",
185
+ "exists": true,
186
+ "size_bytes": 556
187
+ },
188
+ "policy_phase2_missing": {
189
+ "path": "04_manifests/policy_phase2_missing.json",
190
+ "exists": true,
191
+ "size_bytes": 740
192
+ },
193
+ "policy_phase2_labels": {
194
+ "path": "04_manifests/policy_phase2_labels.json",
195
+ "exists": true,
196
+ "size_bytes": 918
197
+ },
198
+ "feature_schema": {
199
+ "path": "04_manifests/email_feature_schema.json",
200
+ "exists": true,
201
+ "size_bytes": 9934
202
+ },
203
+ "final_npz": {
204
+ "path": "06_final\\email_clean.npz",
205
+ "exists": true,
206
+ "size_bytes": 2378
207
+ },
208
+ "final_X_npy": {
209
+ "path": "06_final\\email_clean_X.npy",
210
+ "exists": true,
211
+ "size_bytes": 38564412
212
+ },
213
+ "final_y_npy": {
214
+ "path": "06_final\\email_clean_y.npy",
215
+ "exists": true,
216
+ "size_bytes": 727756
217
+ },
218
+ "final_metadata_parquet": {
219
+ "path": "06_final\\email_clean_metadata.parquet",
220
+ "exists": true,
221
+ "size_bytes": 54643289
222
+ },
223
+ "quality_policy_json": {
224
+ "path": "04_manifests\\quality_policy.json",
225
+ "exists": true,
226
+ "size_bytes": 2452
227
+ },
228
+ "final_manifest_json": {
229
+ "path": "04_manifests\\canonical_manifest_final.json",
230
+ "exists": true,
231
+ "size_bytes": 9522
232
+ }
233
+ },
234
+ "environment": {
235
+ "python_version": "3.12.3 (tags/v3.12.3:f6650f9, Apr 9 2024, 14:05:25) [MSC v.1938 64 bit (AMD64)]",
236
+ "platform": "Windows-11-10.0.22631-SP0",
237
+ "hostname": "NAPGLOHCY7LS47M",
238
+ "pip_freeze": [
239
+ "anyio==4.13.0",
240
+ "argon2-cffi==25.1.0",
241
+ "argon2-cffi-bindings==25.1.0",
242
+ "arrow==1.3.0",
243
+ "asttokens==3.0.1",
244
+ "async-lru==2.3.0",
245
+ "attrs==23.1.0",
246
+ "babel==2.18.0",
247
+ "beautifulsoup4==4.12.3",
248
+ "black==24.4.2",
249
+ "bleach==6.3.0",
250
+ "cachetools==5.5.2",
251
+ "certifi==2023.7.22",
252
+ "cffi==2.0.0",
253
+ "charset-normalizer==3.3.0",
254
+ "click==8.1.7",
255
+ "colorama==0.4.6",
256
+ "comm==0.2.3",
257
+ "contourpy==1.3.2",
258
+ "cramjam==2.11.0",
259
+ "cycler==0.12.1",
260
+ "debugpy==1.8.20",
261
+ "decorator==5.2.1",
262
+ "defusedxml==0.7.1",
263
+ "Deprecated==1.2.15",
264
+ "enum34==1.1.10",
265
+ "et-xmlfile==1.1.0",
266
+ "executing==2.2.1",
267
+ "fastjsonschema==2.21.2",
268
+ "fastparquet==2026.3.0",
269
+ "filelock==3.16.1",
270
+ "fonttools==4.58.0",
271
+ "fqdn==1.5.1",
272
+ "fsspec==2024.12.0",
273
+ "future==1.0.0",
274
+ "google-api-core==2.25.0",
275
+ "google-api-python-client==2.172.0",
276
+ "google-auth==2.40.3",
277
+ "google-auth-httplib2==0.2.0",
278
+ "google-auth-oauthlib==1.2.2",
279
+ "googleapis-common-protos==1.70.0",
280
+ "greenlet==3.4.0",
281
+ "h11==0.16.0",
282
+ "httpcore==1.0.9",
283
+ "httplib2==0.22.0",
284
+ "httpx==0.28.1",
285
+ "idna==3.4",
286
+ "inflection==0.5.1",
287
+ "ipykernel==7.2.0",
288
+ "ipython==9.12.0"
289
+ ]
290
+ }
291
+ }
email_clean.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89f460ea047c90bb02914c4d9b227bada32c5ed9d37df4da84e76f61824b3351
3
+ size 2378
email_clean_X.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42140ed2ffb8be2dbbdd52955bd4a127cf986a84a2d0cfc6ee542980a24874fd
3
+ size 38564412
email_clean_metadata.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0426a8f6a3dbb440d4e65db7339d1e7a5627856f2bc52f4c14688d49dd296ea5
3
+ size 54643289
email_clean_y.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f3dee0c6d6ea9740dd474861d777a52bd0d9580afa0926a81573c71cf21722a1
3
+ size 727756
email_curated_cleaned_dataset.ipynb ADDED
The diff for this file is too large to render. See raw diff