diff --git a/.snippet-licenses/src_main_c_analyze-blame-snippet-analysys.json b/.snippet-licenses/src_main_c_analyze-blame-snippet-analysys.json new file mode 100644 index 0000000..ec3f2d1 --- /dev/null +++ b/.snippet-licenses/src_main_c_analyze-blame-snippet-analysys.json @@ -0,0 +1,67 @@ +{ + "snippetMatches": { + "RECIPROCAL": [ + { + "projectName": "systemd", + "releaseVersion": "251-rc2", + "licenseDefinition": { + "name": "GNU General Public License v2.0 only", + "spdxId": "GPL-2.0", + "ownership": "OPEN_SOURCE", + "licenseDisplayName": "GNU General Public License v2.0 only" + }, + "matchedFilePath": "/systemd-e654d4316c19bb09c397d0a36c7692b4a1944887/src/analyze/analyze-blame.c", + "regions": { + "sourceStartLines": [ + 1 + ], + "sourceEndLines": [ + 60 + ], + "matchedStartLines": [ + 1 + ], + "matchedEndLines": [ + 56 + ] + } + } + ], + "WEAK_RECIPROCAL": [ + { + "projectName": "systemd", + "releaseVersion": "251~rc1", + "licenseDefinition": { + "name": "GNU Lesser General Public License v2.1 or later", + "spdxId": "LGPL-2.1+", + "ownership": "OPEN_SOURCE", + "licenseDisplayName": "GNU Lesser General Public License v2.1 or later" + }, + "matchedFilePath": "/systemd-251~rc1/src/analyze/analyze-blame.c", + "regions": { + "sourceStartLines": [ + 1 + ], + "sourceEndLines": [ + 60 + ], + "matchedStartLines": [ + 1 + ], + "matchedEndLines": [ + 56 + ] + } + } + ] + }, + "_meta": { + "href": "https://snippet-matching-service.saas-staging.blackduck.com/api/snippet-matching", + "links": [ + { + "rel": "licenses-description", + "href": "https://www.synopsys.com/glossary/what-are-open-source-licenses.html" + } + ] + } +} diff --git a/.snippet-licenses/src_main_java_ReactorBdioDocument-snippet-analysys.json b/.snippet-licenses/src_main_java_ReactorBdioDocument-snippet-analysys.json new file mode 100644 index 0000000..fc02e1a --- /dev/null +++ b/.snippet-licenses/src_main_java_ReactorBdioDocument-snippet-analysys.json @@ -0,0 +1,90 @@ +{ + "snippetMatches": { + "PERMISSIVE": [ + { + "projectName": "blackducksoftware/bdio", + "releaseVersion": "3.0.0-beta.15", + "licenseDefinition": { + "name": "Apache License 2.0", + "spdxId": "Apache-2.0", + "ownership": "OPEN_SOURCE", + "licenseDisplayName": "Apache License 2.0" + }, + "matchedFilePath": "/bdio-904f601dc79971c048fdd69539b4c9c3ec51994b/bdio-reactor/src/main/java/com/blackducksoftware/bdio2/reactor/ReactorBdioDocument.java", + "regions": { + "sourceStartLines": [ + 1 + ], + "sourceEndLines": [ + 57 + ], + "matchedStartLines": [ + 16 + ], + "matchedEndLines": [ + 77 + ] + } + }, + { + "projectName": "blackducksoftware/bdio", + "releaseVersion": "3.0.0-beta.2", + "licenseDefinition": { + "name": "Apache License 2.0", + "spdxId": "Apache-2.0", + "ownership": "OPEN_SOURCE", + "licenseDisplayName": "Apache License 2.0" + }, + "matchedFilePath": "/bdio-6aab230f0f00bcb793fd5fe46690af686fb08683/bdio-reactor/src/main/java/com/blackducksoftware/bdio2/reactor/ReactorBdioDocument.java", + "regions": { + "sourceStartLines": [ + 1 + ], + "sourceEndLines": [ + 57 + ], + "matchedStartLines": [ + 16 + ], + "matchedEndLines": [ + 77 + ] + } + }, + { + "projectName": "blackducksoftware/bdio", + "releaseVersion": "3.0.0-beta.42", + "licenseDefinition": { + "name": "Apache License 2.0", + "spdxId": "Apache-2.0", + "ownership": "OPEN_SOURCE", + "licenseDisplayName": "Apache License 2.0" + }, + "matchedFilePath": "/bdio-c04c78cdab6572729f90046169fa0a2e83e12dca/bdio-reactor/src/main/java/com/blackducksoftware/bdio2/reactor/ReactorBdioDocument.java", + "regions": { + "sourceStartLines": [ + 1 + ], + "sourceEndLines": [ + 57 + ], + "matchedStartLines": [ + 16 + ], + "matchedEndLines": [ + 77 + ] + } + } + ] + }, + "_meta": { + "href": "https://snippet-matching-service.saas-staging.blackduck.com/api/snippet-matching", + "links": [ + { + "rel": "licenses-description", + "href": "https://www.synopsys.com/glossary/what-are-open-source-licenses.html" + } + ] + } +} diff --git a/src/main/c/analyze-blame.c b/src/main/c/analyze-blame.c index 6e7c19b..7e6c671 100644 --- a/src/main/c/analyze-blame.c +++ b/src/main/c/analyze-blame.c @@ -48,6 +48,10 @@ int verb_blame(int argc, char *argv[], void *userdata) { if (r < 0) return r; + r = table_set_summary(table, 0, true); + if (r < 0) + return r; + for (UnitTimes *u = times; u->has_data; u++) { if (u->time <= 0) continue; diff --git a/src/main/java/ReactorBdioDocument.java b/src/main/java/ReactorBdioDocument.java index b15625d..75a74ae 100644 --- a/src/main/java/ReactorBdioDocument.java +++ b/src/main/java/ReactorBdioDocument.java @@ -58,6 +58,19 @@ public Flux metadata(Publisher inputs) { .reduce(new BdioMetadata(), BdioMetadata::merge) .flux(); } + + @Override + public Flux> frame(Object frame) { + return identity().compose(inputs -> inputs.flatMap(input -> { + try { + // TODO The RxJava implementation has multiple workarounds, why are they not here? + return Flux.just(JsonLdProcessor.frame(input, frame, options)); + } catch (JsonLdError e) { + return Flux.error(e); + } + })); + } + }