{"id":36420170,"url":"https://github.com/tinyield/sek","last_synced_at":"2026-01-11T17:05:51.668Z","repository":{"id":57744157,"uuid":"316602438","full_name":"tinyield/sek","owner":"tinyield","description":"Sek is a Java wrapper for Kotlin's Sequence. It allows the use of Kotlin's Sequence operations in Java without losing pipeline fluency.","archived":false,"fork":false,"pushed_at":"2021-01-21T16:44:58.000Z","size":60,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-19T17:42:28.455Z","etag":null,"topics":["fluency","java","kotlin","sequence"],"latest_commit_sha":null,"homepage":"","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/tinyield.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-27T21:22:10.000Z","updated_at":"2022-04-17T06:47:35.000Z","dependencies_parsed_at":"2022-08-26T01:33:05.687Z","dependency_job_id":null,"html_url":"https://github.com/tinyield/sek","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/tinyield/sek","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyield%2Fsek","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyield%2Fsek/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyield%2Fsek/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyield%2Fsek/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinyield","download_url":"https://codeload.github.com/tinyield/sek/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyield%2Fsek/sbom","scorecard":{"id":887536,"data":{"date":"2025-08-11","repo":{"name":"github.com/tinyield/sek","commit":"1dc8ad9b188a5e29b35ca3237ee43a672f891d43"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/24 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/tinyield/sek/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/tinyield/sek/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/tinyield/sek/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/tinyield/sek/ci.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":10,"reason":"SAST tool detected","details":["Info: SAST configuration detected: Sonar","Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":9,"reason":"1 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-2qp4-g3q3-f92w"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T10:33:42.254Z","repository_id":57744157,"created_at":"2025-08-24T10:33:42.254Z","updated_at":"2025-08-24T10:33:42.254Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28314264,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T14:58:17.114Z","status":"ssl_error","status_checked_at":"2026-01-11T14:55:53.580Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["fluency","java","kotlin","sequence"],"created_at":"2026-01-11T17:05:51.603Z","updated_at":"2026-01-11T17:05:51.660Z","avatar_url":"https://github.com/tinyield.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sek\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=tinyield_sek\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=tinyield_sek)\n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=tinyield_sek\u0026metric=coverage)](https://sonarcloud.io/dashboard?id=tinyield_sek)\n[![Maven Central](https://img.shields.io/maven-central/v/com.tinyield/sek.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.tinyield%22%20AND%20a:%22sek%22)\n\n_Sek_ is a **Java** wrapper for **Kotlin's**\n[_Sequence_](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.sequences/-sequence.html).\n\nWith _Sek_ you can use the full suite of operations that **Kotlin's**\n[_Sequence_](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.sequences/-sequence.html) provide without leaving the\n**Java** ecosystem, on top of outperforming **Java's** _Stream_ in sequential processing operations in a variety of\nuse-cases.\n\n## Installation\nThis project can be installed into yours by adding a maven dependency, like so:\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.tinyield\u003c/groupId\u003e\n    \u003cartifactId\u003esek\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.0\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nIf you would prefer not to add a dependency to this project, you can also just copy the\n[Sek.java](/src/main/java/com/tinyield/Sek.java) file to your project. You will however need to add **Kotlin** to your\nproject's dependencies, so if you're using maven:\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eorg.jetbrains.kotlin\u003c/groupId\u003e\n    \u003cartifactId\u003ekotlin-stdlib\u003c/artifactId\u003e\n    \u003cversion\u003e${kotlin.version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nFor more information check **Kotlin's** official page on using maven [here](https://kotlinlang.org/docs/reference/using-maven.html).\n\n## Usage\nCreate a _Sek_ using _[of](https://github.com/tinyield/sek/blob/master/src/main/java/org/tinyield/Sek.java#L42)_,\n_[generate](https://github.com/tinyield/sek/blob/master/src/main/java/org/tinyield/Sek.java#L66)_ or the\n_[empty](https://github.com/tinyield/sek/blob/master/src/main/java/org/tinyield/Sek.java#L73)_ method and then chain\noperations into the pipeline until you call a terminal operation like\n_[forEach](https://github.com/tinyield/sek/blob/master/src/main/java/org/tinyield/Sek.java#L587)_ or\n_[reduce](https://github.com/tinyield/sek/blob/master/src/main/java/org/tinyield/Sek.java#L1088)_. For the full list of\nsupported methods check [Sek.java](/src/main/java/com/tinyield/Sek.java) or the official Kotlin documentation about\n[Sequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.sequences/-sequence/).\n\n```java\nSek\u003cString\u003e songs = Sek.of(\n        new Song(\"505\", \"Alternative\"),\n        new Song(\"Amsterdam\", \"Alternative\"),\n        new Song(\"Mural\",\"Hip-Hop\")\n)\n.filterNot(song -\u003e song.name().startsWith(\"A\"))\n.map(Song::name);\n\nSek\u003cString\u003e artists = Sek.of(\n    new Artist(\"Arctic Monkeys\", \"band\"),\n    new Artist(\"Nothing But Thieves\", \"band\"),\n    new Artist(\"Lupe Fiasco\", \"solo-artist\")\n)\n.distinctBy(Artist::type)\n.map(Artist::name);\n\nsongs.zip(artists, (song, artist) -\u003e String.format(\"%s by %s\", song, artist))\n     .forEach(System.out::println);\n\n// Output\n// 505 by Arctic Monkeys\n// Mural by Lupe Fiasco\n```\n\nYou can also add user-defined operations to your pipeline by using the\n[_then_](https://github.com/tinyield/sek/blob/master/src/main/java/org/tinyield/Sek.java#L1429) method,\neven using **Kotlin's** extension methods. Let's say you have a `Extensions.kt` file with the following definition:\n```kotlin\nfun \u003cT\u003e Sequence\u003cT\u003e.oddIndexes() = sequence\u003cT\u003e {\n    var isOdd = false\n    for (item in this@oddIndexes) {\n        if(isOdd) yield(item)\n        isOdd = !isOdd\n    }\n}\n```\nYou could use it with _Sek_ like this:\n```java\n Sek.of(\"a\", \"b\", \"c\", \"d\", \"f\", \"e\")\n    .then(Extensionskt::oddIndexes)\n    .forEach(out::println)\n\n// Output\n// b\n// d\n// e\n```\n\n## License\n\nThis project is licensed under [Apache License,\nversion 2.0](https://www.apache.org/licenses/LICENSE-2.0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinyield%2Fsek","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinyield%2Fsek","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinyield%2Fsek/lists"}