There are no reviews yet. Be the first to send feedback to the community and the maintainers!
float4 smlar(anyarray, anyarray) - computes similary of two arrays. Arrays should be the same type. float4 smlar(anyarray, anyarray, bool useIntersect) - computes similary of two arrays of composite types. Composite type looks like: CREATE TYPE type_name AS (element_name anytype, weight_name FLOAT4); useIntersect option points to use only intersected elements in denominator see an exmaples in sql/composite_int4.sql or sql/composite_text.sql float4 smlar( anyarray a, anyarray b, text formula ); - computes similary of two arrays by given formula, arrays should be the same type. Predefined variables in formula: N.i - number of common elements in both array (intersection) N.a - number of uniqueelements in first array N.b - number of uniqueelements in second array Example: smlar('{1,4,6}'::int[], '{5,4,6}' ) smlar('{1,4,6}'::int[], '{5,4,6}', 'N.i / sqrt(N.a * N.b)' ) That calls are equivalent. anyarray % anyarray - returns true if similarity of that arrays is greater than limit float4 show_smlar_limit() - deprecated - shows the limit for % operation float4 set_smlar_limit(float4) - deprecated - sets the limit for % operation Use instead of show_smlar_limit/set_smlar_limit GUC variable smlar.threshold (see below) text[] tsvector2textarray(tsvector) - transforms tsvector type to text array anyarray array_unique(anyarray) - sort and unique array float4 inarray(anyarray, anyelement) - returns zero if second argument does not present in a first one and 1.0 in opposite case float4 inarray(anyarray, anyelement, float4, float4) - returns fourth argument if second argument does not present in a first one and third argument in opposite case GUC configuration variables: smlar.threshold FLOAT Array's with similarity lower than threshold are not similar by % operation smlar.persistent_cache BOOL Cache of global stat is stored in transaction-independent memory smlar.type STRING Type of similarity formula: cosine(default), tfidf, overlap smlar.stattable STRING Name of table stored set-wide statistic. Table should be defined as CREATE TABLE table_name ( value data_type UNIQUE, ndoc int4 (or bigint) NOT NULL CHECK (ndoc>0) ); And row with null value means total number of documents. See an examples in sql/*g.sql files Note: used on for smlar.type = 'tfidf' smlar.tf_method STRING Calculation method for term frequency. Values: "n" - simple counting of entries (default) "log" - 1 + log(n) "const" - TF is equal to 1 Note: used on for smlar.type = 'tfidf' smlar.idf_plus_one BOOL If false (default), calculate idf as log(d/df), if true - as log(1+d/df) Note: used on for smlar.type = 'tfidf' Module provides several GUC variables smlar.threshold, it's highly recommended to add to postgesql.conf: custom_variable_classes = 'smlar' # list of custom variable class names smlar.threshold = 0.6 #or any other value > 0 and < 1 and other smlar.* variables GiST/GIN support for % and && operations for: Array Type | GIN operator class | GiST operator class ---------------+----------------------+---------------------- bit[] | _bit_sml_ops | bytea[] | _bytea_sml_ops | _bytea_sml_ops char[] | _char_sml_ops | _char_sml_ops cidr[] | _cidr_sml_ops | _cidr_sml_ops date[] | _date_sml_ops | _date_sml_ops float4[] | _float4_sml_ops | _float4_sml_ops float8[] | _float8_sml_ops | _float8_sml_ops inet[] | _inet_sml_ops | _inet_sml_ops int2[] | _int2_sml_ops | _int2_sml_ops int4[] | _int4_sml_ops | _int4_sml_ops int8[] | _int8_sml_ops | _int8_sml_ops interval[] | _interval_sml_ops | _interval_sml_ops macaddr[] | _macaddr_sml_ops | _macaddr_sml_ops money[] | _money_sml_ops | numeric[] | _numeric_sml_ops | _numeric_sml_ops oid[] | _oid_sml_ops | _oid_sml_ops text[] | _text_sml_ops | _text_sml_ops time[] | _time_sml_ops | _time_sml_ops timestamp[] | _timestamp_sml_ops | _timestamp_sml_ops timestamptz[] | _timestamptz_sml_ops | _timestamptz_sml_ops timetz[] | _timetz_sml_ops | _timetz_sml_ops varbit[] | _varbit_sml_ops | varchar[] | _varchar_sml_ops | _varchar_sml_ops
rsql-parser
Parser for RSQL / FIQL – query language for RESTful APIsspring-rest-exception-handler
A convenient Spring MVC exception handler for RESTful APIs.maven-badges
Badge for Maven Centralssh-ldap-pubkey
Utility to manage SSH public keys stored in LDAP.ldap-passwd-webui
Very simple web interface for changing password stored in LDAP or Active Directory (Samba 4 AD).luapak
Easily build a standalone executable for any Lua programesh
Simple templating engine based on shell.ngx-oauth
OAuth 2.0 proxy for nginx written in Lua.validator-collection
The easiest way to validate collections of basic types using Bean Validation.zsh-shift-select
Select text in Zsh command line using Shift, as in many text editors and GUI programssetup-alpine
Easily use Alpine Linux on GitHub Actions, with support for QEMU user emulatortty-copy
Copy content to system clipboard via TTY and terminal using ANSI OSC52 sequencevalidator-spring
Bean Validator utilizing Spring Expression Language (SpEL)asciidoctor-html5s
Semantic HTML5 converter (backend) for Asciidoctorluasrcdiet
Compresses Lua source code by removing unnecessary characters (updated fork of http://luasrcdiet.luaforge.net/)apk-autoupdate
Automatic updates for Alpine Linux and other systems using apk-toolsembedmongo-spring
Spring Factory Bean for “Embedded” MongoDBnginx-binaries
Nginx and njs binaries for Linux (x86_64, aarch64, ppc64le), macOS and Windows. Linux binaries are static so works on every Linux.otf2bdf
OpenType to BDF Converter (unofficial mirror)njs-typescript-starter
A starting template for developing njs (NGINX JavaScript) scripts for NGINX server in TypeScript.apcupsd-snmp
Apcupsd module for Net-SNMPdoas-sudo-shim
sudo shim for doasqemu-openrc
OpenRC init script for QEMU/KVM (for Gentoo and Alpine Linux)rake-jekyll
Rake tasks for Jekyll as a gem.akms
Alpine Kernel Module Support – aka DKMS for Alpine Linuxcorefines
💎 A collection of refinements for Ruby core classes with a compatibility mode for older Rubies and a convenient syntactic sugar.user-aports
My Alpine Linux aports that are not in official repository yet or don’t adhere to Alpine polices (bundles)ipynb2html
Convert Jupyter (IPython) Notebooks to static HTMLsh-parser
Parser of POSIX Shell Command Languagezzz
A simple program to suspend or hibernate your computer 💤nginx-testing
Support for integration/acceptance testing of nginx configuration in TypeScript/JavaScript.asciidoctor-highlight.js
Asciidoctor.js extension for highlighting code in build time using Highlight.jsopensmtpd-filter-rewrite-from
OpenSMTPD 6.6+ filter for rewriting From addressasciidoctor-rouge
Rouge code highlighter support for Asciidoctor (OBSOLETE)efi-mkuki
EFI Unified Kernel Image Makerasciidoctor-katex
Asciidoctor extension for converting latexmath using KaTeX at build timebabel-preset-njs
A Babel preset for njs - NGINX JavaScriptssh-getkey-gitlab
A simple script to be used as AuthorizedKeysCommand in OpenSSH server to look up user’s public keys in GitLab or GitHub.unidecode
Transliteration from Unicode to US-ASCII and ISO 8859-2.alpine-zsh-config
A sensible system-wide Zsh configuration for Alpine Linuxhaste-client
CLI client for haste-server (hastebin.com) written in Pythonts-transformer-inline-file
A TypeScript custom transformer for inlining filesargp
Rust derive-based argument parsing optimized for code size and flexibilitystunnel-static
stunnel built as a fully static binaryswaylockd
A dumb launcher to spawn swaylock and ensure it runs no matter whatssh-getkey-ldap
A simple script to be used as AuthorizedKeysCommand in OpenSSH server to look up user’s public keys in LDAP.ansible-gentoo-roles
A curated list of Ansible roles for Gentoo Linux.asciidoctor-include-ext
Asciidoctor’s standard include processor reimplemented as an extensionmuacme
A convenient wrapper for the ACMEv2 client uacmersql-hibernate
This project is outdated. Use https://github.com/tennaito/rsql-jpa instead.github-pr-closer
GitHub webhook handler for closing pull requests that have been merged using rebase etc.dokuwiki2adoc
Converter from DokuWiki to AsciiDoc formatted text files.sloci-image
Simple script for creating single-layer OCI images.brieflz.lua
Lua binding for BriefLZ compression libraryasciidoctor-interdoc-reftext
Asciidoctor extension providing implicit (automatic) reference text (label) for inter-document cross referencesspring-boot-openrc
OpenRC init script for Java applications based on Spring Bootefi-mkkeys
Script to easily generate self-signed UEFI keys for Secure Bootrsub-client
Open and edit files from a remote machine in your local Sublime Text or TextMate 2.git-metafile
Store and restore files metadata (mode, owner, group) in a git repositoryunboundid-spring
Spring Factory Beans for UnboundID LDAP SDKalpkit
Rust library and CLI tool for reading Alpine Linux’s apk package format and APKBUILDemscripten-travis-example
How to easily use Emscripten on Travis CI or any other CIcesnet-tcs-cli
CLI client utility for CESNET TCS APIslava-ukrajine
Слава Україні! / Sláva Ukrajině! – grafikaasciidoctor-templates-compiler
Compile templates-based Asciidoctor converter (backend) into a single Ruby filespring-http-client-cache
A very simple HTTP cache for the Spring’s RestTemplate.one-context
OpenNebula contextualization scripts for Alpine Linux and Gentoouidmapshift
Shift UIDs/GIDs of directory entries recursively by some offsetyaml-env-tag
Custom YAML tag for referring environment variables in YAML documentsmtype
An enhanced Lua type() function that looks for __type metafieldCSFD-parser
Parser for movie pages and search on CSFD.czcommons-hibernate
My collection of reusable Java classes for Hibernate.virt-init
Provisioning scripts for Alpine Linux VMskeycloak-json-schema
JSON schemas for Keycloak realm configurationredmine_agile
Archive of redmine_agile plugin downloaded from https://www.redmineup.com/pages/plugins/agileapk-deploy-tool
Tool for easily deploying applications or configuration packaged in APK packages via SSHcollectd-apk
Collectd plugin for apk-toolstash
WIPacpi-utils
ACPI utilities for use in scripts and one-linersgversion.lua
Lua library for Gentoo-style versioning formatnginx-oidc-njs
OpenID Connect and OAuth 2.0 module for NGINX written in njs.jabber-migrate
Tool for migration of a roster from one Jabber server to another.alpine-git-mirror-syncd
Lua script that listens on MQTT and synchronizes Git mirrors when notified about changesspring-modular
Modularize Spring applications simply!spring-security-oauth-samples
Modified samples from Spring Security OAuth projectcollectd-openrc
Collectd plugin for OpenRChass-smarwi
Home Assistant integration for Vektiva SMARWI window openermacos-init
Simplified cloud-init for macOScom.meetfranz.Franz
Flatpak for Franzprebackup
Pre/post backup scriptsslim-htag
Slim filter providing a heading tag with parametrized (dynamic) level (h1-h6)beuri-parser
Parser of Boolean Expressions in URImy-void-packages
My package templates for Void Linuxts-transformer-export-default-name
TypeScript AST transformer that assigns name to anonymous functions and classes exported as defaultansible-modules
Some unofficial Ansible modules.roundcube-virtuser_ldap
A Roundcube plugin for LDAP based User-to-Email and Email-to-User lookupsublimedsl
Simple pythonic DSL for generating Sublime Text configs.shaj
atom-jaxb
Custom JAXB classes for Atom Syndication Formatnginx-jsconf
JS library and a CLI tool to convert nginx configuration from YAML or JSON to nginx config formatLove Open Source and this site? Check out how you can help us