2021 IEEE Frontiers in Education Conference (FIE),
Journal Year:
2023,
Volume and Issue:
unknown, P. 1 - 6
Published: Oct. 18, 2023
This
research
is
part
of
a
larger
development
project
that
working
on
multi-programming
language
code
critiquer
called
WebTA.
The
WebTA
code-critiquing
software
designed
to
be
used
in
courses
for
novice
programmers,
e.g.,
CS1
first
engineering
course.
authors
report
component
the
makes
initial
steps
towards
automating
identification
common
student
mistakes,
or
antipatterns
code.
Antipatterns
can
errors,
inefficiencies,
incorrect
style
choices
works
aimed
at
Python
and
uses
machine
learning
algorithm,
Random
Forests,
identify
stylistic
antipattern
crowded
operators.
Scientific Reports,
Journal Year:
2023,
Volume and Issue:
13(1)
Published: Sept. 27, 2023
Abstract
Detecting
code
smells
may
be
highly
helpful
for
reducing
maintenance
costs
and
raising
source
quality.
Code
facilitate
developers
or
researchers
to
understand
several
types
of
design
flaws.
with
high
severity
can
cause
significant
problems
the
software
challenges
system's
maintainability.
It
is
quite
essential
assess
detected
in
software,
as
it
prioritizes
refactoring
efforts.
The
class
imbalance
problem
also
further
enhances
difficulties
smell
detection.
In
this
study,
four
datasets
(Data
class,
God
Feature
envy,
Long
method)
are
selected
detect
severity.
work,
an
effort
made
address
issue
imbalance,
which,
Synthetic
Minority
Oversampling
Technique
(SMOTE)
balancing
technique
applied.
Each
dataset's
relevant
features
chosen
using
a
feature
selection
based
on
principal
component
analysis.
determined
five
machine
learning
techniques:
K-nearest
neighbor,
Random
forest,
Decision
tree,
Multi-layer
Perceptron,
Logistic
Regression.
This
study
obtained
0.99
accuracy
score
forest
tree
approach
method
smell.
model's
performance
compared
its
three
other
measurements
(Precision,
Recall,
F-measure)
estimate
classification
models.
impact
presented
without
applying
SMOTE.
results
promising
beneficial
paving
way
studies
area.
IEEE Access,
Journal Year:
2024,
Volume and Issue:
12, P. 44888 - 44904
Published: Jan. 1, 2024
Software
quality
is
critical,
as
low
quality,
or
"Code
smell,"
increases
technical
debt
and
maintenance
costs.
There
a
timely
need
for
collaborative
model
that
detects
manages
code
smells
by
learning
from
diverse
distributed
data
sources
while
respecting
privacy
providing
scalable
solution
continuously
integrating
new
patterns
practices
in
management.
However,
the
current
literature
still
missing
such
capabilities.
This
paper
addresses
previous
challenges
proposing
Federated
Learning
Code
Smell
Detection
(FedCSD)
approach,
specifically
targeting
"God
Class,"
to
enable
organizations
train
ML
models
safeguarding
collaboratively.
We
conduct
experiments
using
manually
validated
datasets
detect
analyze
smell
scenarios
validate
our
approach.
Experiment
1,
centralized
training
experiment,
revealed
varying
accuracies
across
datasets,
with
dataset
two
achieving
lowest
accuracy
(92.30%)
one
three
highest
(98.90%
99.5%,
respectively).
2,
focusing
on
cross-evaluation,
showed
significant
drop
(lowest:
63.80%)
when
fewer
were
present
dataset,
reflecting
debt.
3
involved
splitting
10
companies,
resulting
global
of
98.34%,
comparable
model's
accuracy.
The
application
federated
techniques
demonstrates
promising
performance
improvements
code-smell
detection,
benefiting
both
software
developers
researchers.