
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
net.vleo.timel:timel-core
Advanced tools
TimEL is a Java library to parse and evaluate discreet time mathematical expressions
Monitoring, metering, IoT, pay-per-use billing: these are only few examples of applications that rely on time-series data! Often you want the final user to be able to manipulate and customize some results based on some time-series data - that's when TimEL comes in handy!
TimEL is a Java library to compile and evaluate TimEL expressions. TimEL expressions are written in a user-friendly language that allows time-series manipulation without the need of taking care about upscaling, downscaling or mixing up different time series intervals.
Let's see an expression to count the number of days:
scale( // (3) and then downsample for the whole interval
scale(
uniform(1.0), // (1) let's take an integral value 1.0
every(1, "DAY_OF_YEAR", "UTC") // (2) repeat it every day
)
)
If we evaluate this expression for an interval in the same day, let's say 06:00-18:00, it'll report 0.5 - that is half day. If we evaluate it for more days it
will count how many days are contained in the interval. The function uniform
here returns an integral, so TimEL knows how to interpolate it properly - that
is handled by the interpreter so the user does not need to worry no more about time frames.
TL;DR? Pick a random example in the 📺 online console and try it yourself!
With TimEL you can:
TimEL requires Java 8 and will run in any J2SE or J2EE container. For complete project information, see TimEL's website.
To use TimEL you need to import the following dependency:
<dependency>
<groupId>net.vleo.timel</groupId>
<artifactId>timel-core</artifactId>
<version>0.9.3</version>
</dependency>
implementation 'net.vleo.timel:timel-core:0.9.3'
Now you're ready to go! Let's count how many days passed since (unix) epoch:
// Compile the expression
Expression<?> expression = TimEL
.parse("scale(scale(uniform(1.0), every(1, \"DAY_OF_YEAR\", \"UTC\")))")
.compile();
// Evaluate and print the number of days from epoch
Interval interval = Interval.of(Instant.ofEpochMilli(0), Instant.now());
System.out.println(TimEL.evaluate(expression, interval).next());
For a more detailed guide refer to the quickstart guide on TimEL's website.
On TimEL's website you can find a list of available types and functions.
You can extend TimEL language by adding new types, conversions as well as functions. Refer to the extension page on the homepage.
FAQs
TimEL is a Java library to parse and evaluate discreet time mathematical expressions
We found that net.vleo.timel:timel-core 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.