Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
com.github.fracpete:minify-weka
Advanced tools
Tool for reducing Weka to a minimal subset of classes.
Currently updates the GUIEditors.props
and GenericPropertiesCreator.props
properties files.
Tested with: 3.6, 3.8 and 3.9
When using -h
or --help
you get the following help screen:
usage: com.github.fracpete.minify.Weka
[-h] --java-home JAVAHOME [--ant-home ANTHOME]
--classes CLASSES [--additional ADDITIONAL] --input INPUT
--output OUTPUT [--test] packages [packages ...]
positional arguments:
packages The packages to keep, eg 'weka'.
optional arguments:
-h, --help show this help message and exit
--java-home JAVAHOME The java home directory of the JDK that includes
the jdeps binary, default is taken from JAVA_HOME
environment variable.
--ant-home ANTHOME The ant home directory (above the 'bin'
directory), if not on PATH.
--classes CLASSES The file containing the classes to determine the
dependencies for. Empty lines and lines starting
with # get ignored.
--additional ADDITIONAL
The file with additional class names to just
include.
--input INPUT The directory with the pristing build environment
in.
--output OUTPUT The directory for storing the minified build
environment in.
--test Optional testing of the minified build
environment.
Classes to include (classes_38.txt
):
weka.classifiers.Evaluation
weka.classifiers.functions.Logistic
weka.classifiers.functions.MultilayerPerceptron
weka.core.Attribute
weka.core.DenseInstance
weka.core.Instances
weka.core.SerializationHelper
weka.filters.Filter
weka.filters.unsupervised.attribute.Discretize
weka.filters.supervised.instance.Resample
Classes that cannot be located with deps4j
(additional_38.txt
) and must be supplied separately (empty lines and lines
starting with #
get ignored):
# expressions
weka.core.expressionlanguage.common.Primitives
# others
weka.gui.LogPanel
weka.experiment.Stats
weka.core.matrix.Maths
# PMML
weka.core.pmml.jaxbbindings.ACTIVATIONFUNCTION
weka.core.pmml.jaxbbindings.Aggregate
weka.core.pmml.jaxbbindings.Alternate
...
Command-line for generating a minified version of Weka:
java com.github.fracpete.minify.Weka
--java-home /somepath/jdk/jdk1.8.0_144-64bit \
--input /someplace/weka-3.8/weka/ \
--output /elsewhere/wekaout/ \
--classes /elsewhere/classes_38.txt \
--additional /elsewhere/additional_38.txt \
weka
Use the following dependency in your pom.xml
:
<dependency>
<groupId>com.github.fracpete</groupId>
<artifactId>minify-weka</artifactId>
<version>0.0.5</version>
</dependency>
The bin
directory of the zip file contains a batch file and a bash script
for making execution easier.
FAQs
Allows minification of a Weka build environment .
We found that com.github.fracpete:minify-weka demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.