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.
= StreamStats {}[https://travis-ci.org/kadwanev/stream_stats]
Extract statistics from long streams of data with minimal space usage and guaranteed precision.
== Install
Add to Gemfile or gem install and require
gem 'stream_stats' require 'stream_stats'
== Usage
=== Stream Quantile Processing
Create stream and add values
stream = StreamStats::Stream.new(0.001, [0.50, 0.90])
Parameters:
The above example guarantees that the 50% and 90% percentile results are accurate to +/- 0.001.
Populate stream with samples:
(0..20).each do |i| stream << i end
Get stream result whenever desired:
count - count of stream entries quantile - query value at quantile percentile - query value at percentile min - query min value max - query max value mean - query mean stddev - query standard deviation of stream entries sum - query sum of stream entries squared_sum - query squared sum of stream entries
=== Stream Counting
Create counter and add values
counter = StreamStats::Counter.new
Populate counter with samples:
(0..20).each do |i| counter << i end
Get stream result whenever desired:
count - count of stream entries min - query min value max - query max value mean - query mean stddev - query standard deviation of stream entries sum - query sum of stream entries squared_sum - query squared sum of stream entries
=== Credit
Complete credit goes to Armon Dadgar.
Algorithm code copied directly out of statsite
FAQs
Unknown package
We found that stream_stats demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.