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3@A4;6B;5/*
XXXXXXXXXX* QRB3
@*L66);A(B;5/7*GC;@*A)(@@*;@*6(4B;())1*A5<3<7*S)3(@3*43F34*B5*A5<3*A5DD3/B@*;/*
012340567T(=(*F54*D543*<3B(;)@7*
00J;3:* GC;@*A)(@@*A5/B(;/@*())*>?.*A5/B45)@*F54*BC3*563/;/E*@A3/3*(@*@C5:/*;/*';E7*$*(
*%7*GC;@*
A)(@@*;@*F9))1*A5<3<7*
00M5<3)* GC;@*A)(@@*;@*43@65/@;2)3*F54*())*<(B(&43)(B3<*5634(B;5/@7*
U* 43(<0(@3@VWI*43(<@*GKJ*54*0KJ*F;)3*(
*;/;B;();X3@*A(@3Y;@B*(
*A(@3M(6*
U* 29;)
Y;@BVWI*)5(<@*13(4M(6*(
*13(4Y;@B7*
U* @3(4AC0(@3@VB;B)38*A(@3G1638*13(48*A(@3[9D234WI*43B94/@*(*);@B*5F*0(@3@*BC(B*D33B*BC3*
@3(4AC*A4;B34;(*
0(@3* U* L*\(=(*23(/*:;BC*64;=(B3*645634B;3@*(
*692);A*E3BB34@8*@3BB34@7*
U* ]=344;<3@*B5KB4;/EVW*B5*43B94/*A(@3[9D2347*
U* .D6)3D3/B@*05D6(4(2)3*B5*@54B*5/*A(@3N(B3*;/*BC3*54<34*@B(4B;/E*:;BC*D5@B*43A3/B*
0(@3^3(<34'(AB541* L*A)(@@*:C5@3*A43(B30(@3^3(<34VW*D3BC5<*43B94/@*(/*(664564;(B3*A(@3^3(<348*;7378*
GKJ 3Ì‚(<34*54*0KJÌ‚ 3(<34*<363
;/E*5/*BC3*3RB3/@;5/*5F*BC3*F;)3/(D3*6(@@3<*B5*;B7*
0(@3Ì‚ 3(<34* L/*(2@B4(AB*A)(@@*:;BC*(*/5/&<3F(9)B*A5/@B49AB54*B5*;/;B;();X3*;B@*F;)3/(D3*(
*(/*(2@B4(AB*
43(<0(@3@VW*D3BC5<*
'
%*
JTW
!"#$%&'())*%+%%*,-%*
0KJ0(@3Ì‚ 3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* N;@6)(1@*A(@3@*BC(B*A5/B(;/*<(B(*3/B343<*;/*B;B)3G3RB';3)<8*A(@3G163G3RB';3)<8*
13(405D25a5R8*(
*A(@3[9D234G3RB';3)<7*?6<(B3@*D3@@(E3Y(23)*(AA54<;/E)17*
0)3(4a9BB5/,(
)34* 0)3(4@*BC3*<(B(*3/B343<*;/*B;B)3G3RB';3)<8*A(@3G163G3RB';3)<8*13(405D25a5R8*
(
*A(@3[9D234G3RB';3)<*
0(@3M3/9.B3D,(
)34* L*A5DD5/*C(
)34*F54*BC433*D3/9*;B3D@*&*L
*A(@38*M5<;F1*A(@38*N3)3B3*A(@37*
N363
;/E*5/*:C;AC*D3/9*;B3D*:(@*AC5@3/8*;B*A43(B3@*(/*;/@B(/A3*5F*L
J;3:8*
M5<;F1J;3:8*54*N3)3B3J;3:*43@63AB;=3)17*L)@5*A43(B3@*(/*;/@B(/A3*5F*
L
a9BB5/,(
)348*M5<;F1a9BB5/,(
)348*54*N3)3B3a9BB5/,(
)348*(
*2;
@*;B*
B5*A(@3J;3:`@*96<(B3a9BB5/7*GC3*A(@3J;3:`@*A)3(4a9BB5/*A)3(4@*())*<(B(*F45D*
BC3*=;3:*(
*A)5@3a9BB5/*A)5@3@*;B@*@B(E37*
L
a9BB5/,(
)34* LB*BC;@*65;/B8*:3*:;))*/5B*AC3AH*F54*<96);A(B3*A(@3*3/B417*
G5*3RB4(AB*<(B(*F45D*A(@3N(B3S;AH34*A5/B45)8*9@3*BC3*F5))5:;/E*A5<3*@/;663BI*
caseView.caseDatePicker.getValue().format(
DateTimeFormatter.ofPattern("yyyy-MM-dd"))
GC3*/3:*A(@3*;@*(
3<*B5*A(@3Y;@B*(
*D3@@(E3Y(23)*;@*96<(B3<*
M5<;F1a9BB5/,(
)34* G(H3@*BC3*<(B(*F45D*())*>?.*A5/B45)@*(
*96<(B3@*A9443/B0(@3`@*645634B;3@*@5*
BC(B*BC31*(43*96<(B3<*;/*BC3*D(;/*@A433/`@*=;3:7*
N3)3B3a9BB5/,(
)34* ^3D5=3@*BC3*A9443/B0(@3*F45D*A(@3M(6*(
*A(@3Y;@B7*?6<(B3@*D3@@(E3Y(23)7*
*
*
*
*
*
*
O*
JTW
!"#$%&'())*%+%%*,-%*
!"#$%&'O)'*+,&%'*-.'37P'*@=CC'E"=#%=F'
!
Q&0:C)'
I%&+)'Q",%=%+'2@=CC'
I%&&0)'!$@@+'2-:&:'
R&@@-4)'S=%5"=@@+'2-:&:'
-'2-@-%)'8-',&'2-:&:'
!"#$%&''&()*+$,)-+.-/$0"&(0$#1#*2$
"-*,'#.0$.#34).#,$)*$567#.$5&89$:&4$/-6$
;&,#$2"#/$-0$/#/7#.$;'-00#0<$)**#.$
;'-00#0<$&.$'-/7,-$%4*;2)&*0<$-0$8#.$6&4.$
8.#%#.#*;#7$
'
'
'
'
'
'
'
'
'
'
'
'
'
'
'
'
'
'
'
'
'
'
'
'
'
'
'
'
'
'
'
'
'
'
!"#$%&'T)'U=0:@&%C$C&:'"0'*+,&%'*-.'37P'
'
!
P*
JTW
!"#$%&'())*%+%%*,-%*
!"#"$
GKJ*N(B(*@3BI*L*@(D6)3*5F*BC;@*<(B(*@3B*;@*@C5:/*;/*G(2)3*%7*.B*C(@*A(@3*B163*V;7378*'3<34()8*L3RB4(AB3<*59B*;/B5*(*@36(4(B3*A5)9D/7*.B*C(@*BC433*(
;B;5/()*A5)9D/@*&*0(@3*);/H8*0(@3*A(B3E5418*(
*0(@3*/5B3@7*
,5:3=348*/5B*())*45:@*D(1*C(=3*<(B(*;/*BC3@3*A5)9D/@7*
8=,@&'3)'819':=5='C=F.@&'
Date Title Type Case
number
Case Link Case
Category
!"#$%&'($#%
XXXXXXXXXXKuuhuub,
Inc., et
al., U.S.
v. (Recolor
Oy)
Federal XXXXXXXXXXhttps:
www.ftc.gov/enforcement/cases-
proceedings/1823184/kuuhuub-inc-et-al-us-v-
ecolor-oy
COPPA Kuuhuub Inc., Kuu Hu
Oy and Recolor Oy
settled FTC allegations
that they violated a
children s privacy law
y ...
XXXXXXXXXXEveralbum,
Inc., In
the Matter
of
Administrative XXXXXXXXXXhttps:
www.ftc.gov/enforcement/cases-
proceedings/ XXXXXXXXXX/support-king-llc-
spyfonecom-matter
Facial
ecognition
Everalbum settled
Federal Trade Commission
allegations that it
deceived consumers about
its use of facial
ecognition technology…
*
0KJ*N(B(*@3BI*GC;@*<(B(*C(@*@(D3*A5)9D/@*(@*(25=38*29B*@;/A3*@5D3*5F*BC3*=()93@8*@9AC*(@*G;B)3*54*0(@3*/5B3@*A(/*
C(=3*A5DD(@*:;BC;/*BC3D8*BC31*(43*3/A)5@3<*:;BC;/*<592)3&b95B3@*(@*@C5:/*;/*G(2)3*O7*
8=,@&'H)'*19':=5='C=F.@&'
Date Title Type Case
number
Case Link Case
Category
!"#$%&'($#%
XXXXXXXXXX "Kuuhuub,
Inc., et
al., U.S.
v. (Recolor
Oy) "
Federal XXXXXXXXXXhttps:
www.ftc.gov/enforcement/cases-
proceedings/1823184/kuuhuub-inc-et-al-us-v-
ecolor-oy
COPPA "Kuuhuub Inc., Kuu Hu
Oy and Recolor Oy
settled FTC allegations
that they violated a
children s privacy law
y ... "
XXXXXXXXXX "Everalbum,
Inc., In
the Matter
of"
Administrative XXXXXXXXXXhttps:
www.ftc.gov/enforcement/cases-
proceedings/ XXXXXXXXXX/support-king-llc-
spyfonecom-matter
Facial
ecognition
"Everalbum settled
Federal Trade Commission
allegations that it
deceived consumers about
its use of facial
ecognition technology…"
*
XXXXXXXXXX*%7+*@C59)<*23*(2)3*B5*43(<*<(B(*;/*25BC*F54D(B@*9@;/E*S5)1D546C;@D7*GC3*GKJ*<(B(*:;))*23*43(<*(@*
9@9()*21*6(4@;/E*(
*@6);BB;/E*<(B(*5/*B(2@7*a9B*F54*0KJ*<(B(8*:3*:;))*9@3*(*O"#!6(4B1*9B;);B1*A())3<*0KJS(4@34$!21*
;/A)9<;/E*(/*3RB34/()*\L^F;)3*A5DD5/@&A@=&$7"7T(47*.B*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Z]?^SLG,*G]*\LJL'fY.ae*&&(
&*
D5<9)3@dT(=(FR7A5/B45)@8T(=(FR7FRD)8T(=(FR7:32*
U* 05D6)3B3*1594*A5<37*
U* N5*/5B*AC(/E3*BC3*`F9))1&A5<3<`*F;)3@*E;=3/*B5*1597*Z59*A(/*D5<;F1*BC3*
3@;E/*5F*5BC34*A)(@@3@*(@*)5/E*(@*B3@B&A(@3@*6(@@7*,5:3=348*D(H;/E*
B55*D(/1*AC(/E3@*D(1*/33<*43:54H*F54*159*;/*,-O7*7*
U * -4;B3*1594*/(D3*(
*L
43:*;<*(@*A5DD3/B@*(B*BC3*B56*;/*\(=(*F;)3@*
159*/33<*B5*@92D;B7*N5*/5B*@92D;B*BC3*Ì€ F9))1&A5<3<`*F;)3@*E;=3/*B5*
1597*
U* Z59*:;))*B3@B*1594*645E4(D*;/*B:5*:(1@I*>?.*;/B34(AB;5/*V43F34*B5*
@A3/(4;5@*;/*=;<35&A);6@*5/*0(/=(@W*(
*G3@B012340567T(=(7*GC3@3*
B:5*B3@B@*:;))*E3B*159*g+h5F*BC3*65;/B@7*]BC34*A4;B34;(*(66);3<*B5*
3=()9(B3*1594*645E4(D*(43I*
$7* N5A9D3/B(B;5/*V"hWI*Z594*A5<3*@C59)<*23*:3))&A5DD3/B3<8*;7378*
3;BC34*B55*D(/1*A5DD3/B@8*/54*B55*F3:7*Z3@8*BC;@*43b9;43@*(*
);BB)3*2;B*5F*1594*T93R6)(/(B541*:(17*-4;B3*1594*/(D3*(
*L
43:*;<*(B*BC3*B56*;/*
BC3*A5DD3/B@*;/*3(AC*A)(@@7*.
3/B*1594*A5<3* XXXXXXXXXX*V./*
QA);6@38*643@@*0B4)&L*B5*@3)3AB*())*1594*A5<3*(
*BC3/*0B4)&.*B5*
;
3/BW*
%7* 05<3*b9();B1*V"hWI*A5<;/E*A5/=3/B;5/@8*/5*9/9@3<*
=(4;(2)3@_*);24(4;3@8*3BA7*?@3*1594*T9A4;B34;(7*
O7* 05<3*4529@B/3@@*V"hWI*Z594*645E4(D*@C59)<*/5B*BC45:*(/1*34454@*
:C;)3*645A3@@;/E7* Z59*A(/*@(F3)1*(@@9D3*BC(B*BC3*9@34*:;))*/5B*
3/B34*(/1*E(42(E3*;/69B7*
P7* K92D;@@;5/*;/@B49AB;5/@*V"hWI*j;6*1594*T(=(*F;)3@*;/B5*
L
43:.<&C:%7X;67*'9))1&A5<3<*F;)3@*54*B3@B&F;)3*@C59)<*/5B*23*
;/A)9<3<*;/*BC3*X;67*N5*/5B*@92D;B*(/1*5BC34*F5)<34@8*A)(@@*
F;)3@8*B3@B*F;)38*B3RB*F;)3@8*(
*43@B*5F*1594*H;BAC3/*@;/Hi* ]/)1*
)(@B*@92D;@@;5/*:;))*23*E4(<3<7*-45/E*F;)3@8*;/A5443AB*6(AH(E3*
(D38*3BA7*D(1*A5@B*@5D3*65;/B@7*
!"#$%&'V)'S%-W&25'C&5$.7'<-5&'C.&2"=@'"2-0'B-%' :=5='
=0:'4&,'B-@:&%C7'86&+'=%&'2%&=5&:'=C'XC-$%2&'
B-@:&%X7'Y6"@&'0-5'0&2&CC=%+'B-%':=5='B-@:&%Z'
C-$%2&'B-@:&%C=%&'=$5-F=5"2=@@+'"02@$:&:'"0',$"@:'
.=567'
*
*
[]*YLGQ*K?aM.KK.][K*SYQLKQ*i*.F*159*(43*9/(2)3*B5*@92D;B*5/*B;D38*159*)5@3*())*BC3*65;/B@7*S)3(@3*(=5;<*)(@B*
D;/9B3*@92D;@@;5/*(@*0(/=(@*D(1*<3A;<3*B5*b9;B*5/*159i*Y3(4/*B5*B49@B*B3AC/5)5E1*5/)1*B5*BC3*3RB3/B*159*
@C59)*
*
*
c*
JTW
Code files:
+ SyberCopjava 4,
+ CCViewjava &,
« CCModeljava 4, *
« CaseReaderjava &
+ CSVCaseReaderjava J,
“This has just member variables,
method signatures, and some
comments provided as hints
External Jar:
commons-csv:
Test files
+ TestCyberCopjava J,
Data files
For most of development and testing activities, please use the two
‘Small files as they don't have direct links to FTC site. This will help
avoid unnecessary and seemingly suspicious traffic on FTC.gov
(the real Cyber Cop!t)
« SmallTSV-CCData.tsv
« SmallCSV-CCData.csv
%
%
Use the following files for scenario testing (i.e. through GUI) only
after you have completed everything with the two data files
above. The test-case file uses CyberCop-TSVData.tsv without
using the link so it is safe to run the test-cases as many times as
you need.
« CyberCop-TSVData.tsy
L
« CyberCop-CSVData.csv &,
Web files
« CyberCophtml
= cybercop.jpg
« everalbum.html J,
« kuuhuub html J,
« supportking html J,