A hashing function which returns integers with a possible max value
A utility package for JavaScript applications.
Generate hashes from javascript objects in node and the browser.
This package provides support for the [RediSearch](https://redis.io/docs/interact/search-and-query/) module, which adds indexing and querying support for data stored in Redis Hashes or as JSON documents with the [RedisJSON](https://redis.io/docs/data-type
Stable JS value hash.
Implementation of JSON Web Signatures
JWA implementation (supports all JWS algorithms)
Recursively iterates over specified directory, require()'ing each file, and returning a nested hash structure containing those modules.
A MurmurHash2 implementation
abstract base class for hash-streams
An incremental implementation of MurmurHash3
Stable JS value hash.
A pure JS implementation SHA256.
SHA256 wrapper for browsers that prefers `window.crypto.subtle` but will fall back to a pure JS implementation in @aws-crypto/sha256-js to provide a consistent interface for SHA256.
Hashing made simple. Get the hash of a buffer/string/stream/file.
create hashes for browserify
Generates a hash for an installed npm package, useful for salting caches
Create a base32 hash
A collection of utilities for better-auth
Lightning fast normal and incremental md5 for javascript
oidc-token-hash validates (and generates) ID Token `_hash` claims such as `at_hash` or `c_hash`
Serve directory listings
Node.js object hash library with properties/arrays sorting to provide constant hashes
TypeScript definitions for object-hash
Predictable hash indexing with a possible maximum value. Rust adaptation of watson/hash-index using Blake3
Test utilities and property-based testing for the graph-api ecosystem
High-performance columnar permutation index and filter engine for Apache Arrow
A cache. A set which compares elements in a customisable way without overriding the eq() and hash() functions on the type itself.
NodeDB terminal UI and CLI
Shared document engine (text analysis, BM25, inverted index) for NodeDB Origin and Lite
Embedded edge client for NodeDB — offline vector search, graph traversal, and CRDT sync
C FFI bindings for NodeDB-Lite — iOS/Android interop
JavaScript/TypeScript bindings for NodeDB-Lite via wasm-bindgen
A Rust library implementing the ASPIC+ framework for structured argumentation
Local-first MCP server giving AI coding agents fast, structured, and semantic context over any codebase.
Local-first MCP server giving AI coding agents fast, structured, and semantic context over any codebase.
Reduce an array to a hash that indexes the array
suggests Hash or Array access on error with invalid key or index
Replicates PostgreSQL's default hash partitioning calculations. Specifically targets the logic within `hashint8extended` (for bigint) and `hashint4extended` (for integer/smallint) from PostgreSQL's `src/backend/access/hash/hashfunc.c`.
Return randomized data from arrays and hashes. The randeaux methods takes two arguments: the data structure you wish to sample and an optional argument for the number of elements you wish to be returned. By default, randeaux will return one random element.
This tool takes a list of paths and checks them for git repositories. It writes to a sqlite database a table of repositories found, indexed by both the first and the second commit hashes on the repository. The rationale is that these first couple of commits are unlikely to ever change as the result of a rebase, and thus make a fairly reliable fingerprint of the identity of the repository. The motivation behind this tool is for use with Serf and the serf-hander gem to power a slick, simple deployment manger utiizing a git repo and deploy hooks at the underlying source and trigger.
Evaluate JSONPath expressions against Ruby hashes and arrays. Supports dot notation, array indexing, wildcards, slices, filter expressions, recursive descent, and length comparisons for querying nested data.
A generic index DRb server. The core index is a hash, each key is an individual term, each value is an array of references for that term. Searches the index with a simple regexp grep against the hash keys to return a single array of all references on matching terms. Multi-user ready via a simple locking mechanism that probably doesn't scale too well. BSD License.
Surus accelerates ActiveRecord with PostgreSQL specific types and functionality. It enables indexed searching of serialized arrays and hashes. It also can control PostgreSQL synchronous commit behavior. By relaxing PostgreSQL's durability guarantee, transaction commit rate can be increased by 50% or more.
Create openstructs that are also symbol and string structs! Lock them! Index them! You've got your problems, I've got your hash pipe.
Deltoid diffs HTML documents using a relatively simple N-way algorithm. It reports deltas as an array of hashes, where each hash contains :content, :xpath, and :index keys.
A high-performance pure Ruby Red-Black Tree implementation. Features: O(1) key lookup via hybrid hash index, O(log n) insert/delete, lazy Enumerator-based range queries (lt/gt/between), nearest/prev/succ search, memory-efficient node pooling, and MultiRBTree for duplicate keys with first/last value access.
{<img src="https://secure.travis-ci.org/socialcast/socialcast-shoulda-ext.png?branch=master" alt="Build Status" />}[http://travis-ci.org/socialcast/socialcast-shoulda-ext] = Socialcast Shoulda Extensions Adds new matchers and functionality to the shoulda test library = Installation In your Gemfile: group :test do gem 'socialcast_shoulda_ext', :git => 'git@github.com:socialcast/socialcast-shoulda-ext.git', :require => 'shoulda_ext' end If you want to include the trigger_callbacks matcher, also add the following to your test helper: ShouldaExt::Matchers::TriggerCallbackMatcher.attach_active_record_callback_hooks! = Matchers == RecordCountChangeMatcher Test if the count for a model has changed, and by how much. Requires the context_with_matcher_before_hooks patch, which is included by default. Provides the following matcher methods: - create_record(klass_or_symbol) Alias for change_record_count.for(klass_or_symbol).by(1) - create_records(klass_or_symbol, amount) Alias for change_record_count.for(klass_or_symbol).by(amount) - destroy_record(klass_or_symbol) Alias for change_record_count.for(klass_or_symbol).by(-1) - destroy_records(klass_or_symbol, amount) Alias for change_record_count.for(klass_or_symbol).by(-amount) - change_record_count Tests the difference in record count before and after the current setup/subject block Can be used with the follow methods: - for(klass_or_symbol) Provides the class which the test is being performed on. Can be a constant or a symbol - by(amount) Provides an expected difference for the number of records for the specified class. Excluding this number will allow the matcher to check for any difference Examples: context "creating a blog article" do context "with good parameters" do setup do post :create, :blog => {:title => 'my blog post', :body => 'Ipsum lorem...'} end should create_record :blog end context "without a body" do setup do post :create, :blog => {:title => 'my blog post' } end should_not create_record Blog end end == RespondWithJson Check if the controller's response is json Examples: context ":index.json" do setup do get :index, :format => 'json' end # Just check to see that the response was json should respond_with_json # Evaluate the hash produced by the json yourself should respond_with_json { |json| json.first['blog']['title'] == 'blog post 1'} # Provide an exact match should respond_with_json.exactly(['blog' => {'id' => 1, 'title' => 'blog post 1'}]) # Provide an exact match with a block should response_with_json.exactly{ |json| JSON.parse(Blog.all.to_json)} end context ":index.html" do setup do get :index end # or the negation should_not respond_with_json end == TriggerCallbackMatcher Test if create, update, destroy, or save callbacks were triggered. Requires running ShouldaExt::Matchers::TriggerCallbackMatcher.attach_active_record_callback_hooks! in your test suite in order to work properly. Examples: context "doing nothing to a record" do subject { Blog.new :title => 'blog title' } should_not trigger_callbacks end context "creating a record" do subject { Blog.create! :title => 'blog title' } should trigger_callbacks.for :create should_not trigger_callbacks.for :update, :destroy end = Integrations Currently only integrates with test/unit. RSpec support to come. = Shoulda Extensions == ContextWithMatcherBeforeHooks Adds the ability to define a 'before' method on any method which will be run before each context's setup/subject block. Used by RecordCountChangeMatcher to record the number of records before the tested operation takes place.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.