{"id":20806495,"url":"https://github.com/beryx/streamplify","last_synced_at":"2025-05-07T04:25:41.227Z","repository":{"id":57738837,"uuid":"67440916","full_name":"beryx/streamplify","owner":"beryx","description":"Java 8 combinatorics-related streams and other utilities","archived":false,"fork":false,"pushed_at":"2018-07-10T07:37:08.000Z","size":1488,"stargazers_count":42,"open_issues_count":0,"forks_count":13,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-31T06:24:18.729Z","etag":null,"topics":["combination","combinations","combinatorics","permutation","permutations","stream","streams"],"latest_commit_sha":null,"homepage":"http://streamplify.beryx.org/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/beryx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-05T17:57:03.000Z","updated_at":"2025-03-14T12:16:46.000Z","dependencies_parsed_at":"2022-08-24T17:51:19.677Z","dependency_job_id":null,"html_url":"https://github.com/beryx/streamplify","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beryx%2Fstreamplify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beryx%2Fstreamplify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beryx%2Fstreamplify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/beryx%2Fstreamplify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/beryx","download_url":"https://codeload.github.com/beryx/streamplify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252811986,"owners_count":21808058,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["combination","combinations","combinatorics","permutation","permutations","stream","streams"],"created_at":"2024-11-17T19:20:26.884Z","updated_at":"2025-05-07T04:25:41.208Z","avatar_url":"https://github.com/beryx.png","language":"Java","readme":"[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com)\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/beryx/streamplify/blob/master/LICENSE)\n[![Build Status](https://img.shields.io/travis/beryx/handlebars-java-helpers/master.svg?label=Build)](https://travis-ci.org/beryx/streamplify)\n## Streamplify ##\n\n\nThe goal of this library is to provide useful Java 8 streams and to assist you in building new streams that allow efficient parallel processing.\n\nThe utilities offered by Streamplify include:\n\n- combinatorics streams: permutations, combinations, Cartesian products, power sets, derangements, partial permutations.\n- classes that help you implement your own efficient parallel streams.\n\n**Example**\n\nThe following code snippet uses a parallel permutation stream to find all solutions of the [N-Queens problem](https://en.wikipedia.org/wiki/Eight_queens_puzzle) for n = 10.\n```\nSystem.out.println(new Permutations(10)\n        .parallelStream()\n        .filter(perm -\u003e {\n            for(int i = 0; i \u003c perm.length - 1; i++) {\n                for(int j = i + 1; j \u003c perm.length; j++) {\n                    if(Math.abs(perm[j] - perm[i]) == j - i) return false;\n                }\n            }\n            return true;\n        })\n        .map(perm -\u003e IntStream.range(0, perm.length)\n                .mapToObj(i -\u003e \"(\" + (i + 1) + \",\" + (perm[i] + 1) + \")\")\n                .collect(Collectors.joining(\", \")))\n        .collect(Collectors.joining(\"\\n\")));\n```\n\n\nBefore starting to use the library, take a look at the **[examples](streamplify-examples/src/main/java/org/beryx/streamplify/example)**, read the **[documentation](http://streamplify.beryx.org)** and consult the **[javadoc](http://streamplify.beryx.org/releases/latest/javadoc)**.\n\nStreamplify is available in [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.beryx%22%20AND%20a%3A%22streamplify%22) and [JCenter](https://bintray.com/beryx/maven/streamplify).\n\n**Contribute to this project!**\n\nWe accept all types of contributions and we are very welcoming to first time contributors.\n\nRead **[how to contribute](CONTRIBUTING.md)** and jump in!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberyx%2Fstreamplify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fberyx%2Fstreamplify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fberyx%2Fstreamplify/lists"}