<s>
It	O
is	O
available	O
to	O
the	O
general	O
public	O
as	O
open	B-Application
source	I-Application
code	I-Application
and	O
can	O
be	O
compiled	B-Language
with	O
any	O
standard	O
ANSI	B-Language
C++	I-Language
compiler	B-Language
.	O
</s>
<s>
Center	O
for	O
Systems	O
and	O
Software	O
Engineering	O
(	O
CSSE	O
)	O
at	O
the	O
University	O
of	O
Southern	O
California	O
has	O
developed	O
and	O
released	O
a	O
code	O
counting	O
toolset	O
called	O
the	O
Unified	B-Language
Code	I-Language
Count	I-Language
(	O
UCC	O
)	O
,	O
which	O
ensures	O
consistency	O
across	O
independent	O
organisations	O
in	O
the	O
rules	O
used	O
to	O
count	O
software	O
lines	O
of	O
code	O
.	O
</s>
<s>
Logical	O
SLOC	O
(	O
LSLOC	O
)	O
–	O
Lines	O
of	O
code	O
intended	O
to	O
measure	O
"	O
statements	O
"	O
,	O
which	O
normally	O
terminate	O
by	O
a	O
semicolon	O
(	O
C/C	B-Language
++	I-Language
,	O
Java	B-Language
,	O
C#	B-Application
)	O
or	O
a	O
carriage	O
return	O
(	O
VB	B-Language
,	O
Assembly	B-Language
)	O
,	O
etc	O
.	O
</s>
<s>
The	O
beta	O
versions	O
are	O
tested	O
by	O
industry	O
Affiliates	O
,	O
and	O
then	O
released	O
to	O
the	O
public	O
as	O
open	B-Application
source	I-Application
code	I-Application
.	O
</s>
<s>
It	O
was	O
a	O
collection	O
of	O
standalone	O
programs	O
written	O
in	O
a	O
single	O
language	O
to	O
measure	O
source	O
code	O
written	O
in	O
languages	O
like	O
COBOL	B-Application
,	O
Assembly	B-Language
,	O
PL/1	B-Language
,	O
Pascal	B-Application
,	O
and	O
Jovial	B-Language
.	O
</s>
<s>
Nguyen	O
produced	O
the	O
Unified	O
CodeCount	O
(	O
UCC	O
)	O
system	O
design	O
as	O
a	O
framework	B-Architecture
and	O
the	O
existing	O
code	O
counters	O
and	O
differencing	O
tool	O
were	O
merged	O
into	O
it	O
.	O
</s>
<s>
Additional	O
features	O
like	O
unified	O
counting	O
and	O
differencing	O
capabilities	O
,	O
detecting	O
duplicate	O
files	O
,	O
support	O
for	O
text	B-General_Concept
and	O
CSV	O
output	O
files	O
,	O
etc	O
.	O
</s>
<s>
A	O
presentation	O
on	O
"	O
Unified	B-Language
Code	I-Language
Count	I-Language
with	O
Differencing	O
Functionality	O
"	O
was	O
presented	O
in	O
the	O
24th	O
International	O
Forum	O
on	O
COCOMO	O
in	O
October	O
2009	O
.	O
</s>
<s>
The	O
UCC	O
is	O
the	O
result	O
of	O
that	O
effort	O
,	O
and	O
is	O
available	O
as	O
open	B-Application
source	I-Application
to	O
the	O
general	O
public	O
.	O
</s>
<s>
These	O
differencing	O
results	O
can	O
be	O
saved	O
to	O
either	O
plain	O
text	B-General_Concept
.txt	B-General_Concept
or	O
.csv	O
files	O
.	O
</s>
<s>
The	O
default	O
is	O
.csv	O
,	O
but	O
.txt	B-General_Concept
can	O
be	O
specified	O
by	O
using	O
the	O
–	O
ascii	O
switch	O
.	O
</s>
<s>
Support	O
for	O
various	O
Programming	O
Languages	O
-	O
The	O
counting	O
and	O
differencing	O
capabilities	O
accept	O
the	O
source	O
code	O
written	O
in	O
C/C	B-Language
++	I-Language
,	O
C#	B-Application
,	O
Java	B-Language
,	O
SQL	B-Language
,	O
Ada	B-Language
,	O
Perl	B-Language
,	O
ASP.NET	B-Application
,	O
JSP	B-Language
,	O
CSS	B-Language
,	O
HTML	B-Language
,	O
XML	B-Protocol
,	O
JavaScript	B-Language
,	O
VB	B-Language
,	O
Php	B-Application
,	O
VbScript	B-Application
,	O
Bash	B-Operating_System
,	O
C	B-Operating_System
Shell	I-Operating_System
Script	I-Operating_System
,	O
ColdFusion	B-Language
,	O
Fortran	B-Application
,	O
Midas	B-Application
,	O
NeXtMidas	O
,	O
Pascal	B-Application
,	O
Ruby	B-Language
,	O
X-Midas	O
,	O
and	O
Python	B-Language
.	O
</s>
<s>
UCC	O
is	O
a	O
command-line	B-Application
application	O
and	O
it	O
is	O
compiled	B-Language
under	O
the	O
application	O
console	O
mode	O
.	O
</s>
<s>
Duplication	O
-	O
For	O
each	O
baseline	O
,	O
two	O
files	O
are	O
considered	O
duplicates	O
if	O
they	O
have	O
same	O
content	O
or	O
the	O
difference	O
is	O
smaller	O
than	O
the	O
threshold	O
given	O
through	O
the	O
command	B-Application
line	I-Application
switch	O
-tdup	O
.	O
</s>
<s>
CodeCount	O
is	O
written	O
in	O
C/C	B-Language
++	I-Language
,	O
and	O
utilizes	O
relatively	O
simple	O
algorithms	O
to	O
recognize	O
comments	O
and	O
physical/logical	O
lines	O
.	O
</s>
<s>
Users	O
may	O
be	O
able	O
to	O
compile	B-Language
using	O
optimization	O
switches	O
for	O
faster	O
execution	O
;	O
refer	O
to	O
the	O
users	O
manual	O
the	O
compiler	B-Language
being	O
used	O
.	O
</s>
<s>
The	O
UCC	O
open	B-Application
source	I-Application
distribution	O
contains	O
,	O
,	O
and	O
for	O
the	O
language	O
counters	O
.	O
</s>
<s>
The	O
UCC	O
is	O
a	O
monolithic	B-Architecture
,	O
object-oriented	B-Application
toolset	O
designed	O
to	O
simplify	O
its	O
maintenance	O
.	O
</s>
<s>
CodeCount	O
has	O
been	O
tested	O
on	O
a	O
wide	O
variety	O
of	O
operating	O
systems	O
and	O
hardware	O
platforms	O
and	O
should	O
be	O
portable	O
to	O
any	O
environment	O
that	O
has	O
an	O
ANSI	O
standard	O
C++	B-Language
compiler	B-Language
.	O
</s>
<s>
The	O
full	O
text	B-General_Concept
of	O
the	O
license	O
can	O
be	O
viewed	O
at	O
.	O
</s>
<s>
The	O
three	O
types	O
of	O
statements	O
are	O
:	O
executable	O
,	O
declaration	O
and	O
compiler	B-Language
directives	O
.	O
</s>
<s>
Executable	O
statements	O
are	O
eventually	O
translated	O
into	O
machine	B-Language
code	I-Language
to	O
cause	O
run-time	B-Library
actions	O
,	O
while	O
declaration	O
and	O
compiler	B-Language
directive	O
statements	O
affect	O
compiler	B-Application
's	I-Application
actions	O
.	O
</s>
<s>
The	O
UCC	O
assumes	O
that	O
the	O
source	O
code	O
will	O
compile	B-Language
;	O
otherwise	O
the	O
results	O
are	O
unreliable	O
.	O
</s>
<s>
The	O
semicolon	O
option	O
may	O
sound	O
appealing	O
,	O
but	O
not	O
all	O
the	O
popular	O
languages	O
uses	O
the	O
semicolon	O
(	O
like	O
SQL	B-Language
,	O
JavaScript	B-Language
,	O
UNIX	O
scripting	O
languages	O
,	O
etc	O
.	O
)	O
.	O
</s>
<s>
The	O
table	O
1	O
and	O
2	O
illustrates	O
the	O
summary	O
of	O
SLOC	O
counting	O
rules	O
for	O
logical	O
lines	O
of	O
code	O
for	O
C/C	B-Language
++	I-Language
,	O
Java	B-Language
,	O
and	O
C#	B-Application
programming	O
languages	O
.	O
</s>
<s>
The	O
UCC	O
Code	O
Counting	O
Rules	O
for	O
each	O
language	O
are	O
distributed	O
with	O
the	O
open	B-Application
source	I-Application
release	O
.	O
</s>
<s>
Measurement	O
Unit	O
Order	O
of	O
Precedence	O
Physical	O
SLOC	O
Statements	O
1	O
One	O
per	O
line	O
Declaration	O
(	O
Data	O
)	O
lines	O
2	O
One	O
per	O
line	O
Compiler	B-Language
directives	O
3	O
One	O
per	O
line+	O
Table	O
1	O
.	O
</s>
<s>
The	O
MainObject	O
is	O
the	O
top-level	O
class	O
which	O
performs	O
the	O
command	B-Application
line	I-Application
parsing	O
,	O
to	O
extract	O
the	O
list	O
of	O
files	O
from	O
the	O
command	O
parameters	O
and	O
then	O
reads	O
each	O
file	O
into	O
the	O
memory	O
for	O
counting	O
or	O
differentiation	O
.	O
</s>
<s>
The	O
output	O
of	O
the	O
counting	O
function	O
provides	O
the	O
following	O
sets	O
of	O
files( 	O
.txt	B-General_Concept
)	O
for	O
duplicate	O
and	O
counting/complexity	O
results	O
:	O
</s>
<s>
is	O
the	O
name	O
of	O
the	O
language	O
of	O
the	O
source	O
files	O
,	O
e.g.	O
,	O
C_CPP	O
for	O
C/C	B-Language
++	I-Language
files	O
and	O
Java	B-Language
for	O
Java	B-Language
files	O
.	O
</s>
<s>
DuplicatePairs.txt	O
a	O
text	B-General_Concept
file	I-General_Concept
listing	O
matches	O
between	O
a	O
source	O
file	O
and	O
its	O
duplicate	O
file	O
.	O
</s>
<s>
DiffTool	O
is	O
the	O
derivative	O
of	O
MainObject	O
,	O
which	O
parses	O
the	O
command	B-Application
line	I-Application
parameters	O
and	O
processes	O
the	O
list	O
of	O
files	O
for	O
each	O
baseline	O
.	O
</s>
<s>
The	O
DiffTool	O
class	O
provides	O
the	O
following	O
sets	O
of	O
files( 	O
.txt	B-General_Concept
,.	O
csv	O
)	O
across	O
baselines	O
:	O
</s>
<s>
MatchedPairs	O
A	O
text	B-General_Concept
file	I-General_Concept
listing	O
matches	O
between	O
files	O
in	O
Baseline	O
A	O
and	O
Baseline	O
B	O
.	O
</s>
<s>
outfile_diff_results.txt	O
Main	O
differencing	O
results	O
in	O
the	O
plain	O
text	B-General_Concept
format	O
.	O
</s>
<s>
Counts	O
the	O
compiler	B-Language
directive	O
SLOC	O
(	O
using	O
CountDirectiveSLOC	O
method	O
)	O
.	O
</s>
<s>
Counters	O
for	O
text	B-General_Concept
,	O
assembly	B-Language
,	O
Cobol	B-Application
,	O
Jovial	B-Language
,	O
Matlab	O
,	O
and	O
Pascal	B-Application
are	O
in	O
development	O
.	O
</s>
<s>
Also	O
,	O
a	O
graphical	O
user	O
interface	O
is	O
being	O
produced	O
which	O
may	O
be	O
used	O
in	O
place	O
of	O
the	O
current	O
command	B-Application
line	I-Application
interface	I-Application
.	O
</s>
