[Demonstration 1]

[Buggy Method]
private void logToStandardOutMessageSent(@NotNull Wire wire, @NotNull ByteBuffer outBuffer) {
    if (!YamlLogging.clientWrites || !Jvm.isDebug())
        return;
    Bytes<?> bytes = wire.bytes();
    final long position = bytes.writePosition();
    final long limit = bytes.writeLimit();
    try {
        bytes.writeLimit(outBuffer.limit());
        bytes.writePosition(outBuffer.position());
        if (YamlLogging.clientWrites) {
            try {
                System.out.println(((!YamlLogging.title.isEmpty()) ? "### " + YamlLogging.title + "\n" : "") + "" + YamlLogging.writeMessage + (YamlLogging.writeMessage.isEmpty() ? "" : "\n\n") + "sends:\n\n" + "```yaml\n" + ((wire instanceof TextWire) ? Wires.fromSizePrefixedBlobs(bytes) : BytesUtil.toHexString(bytes, bytes.writePosition(), bytes.writeRemaining())) + "```");
                YamlLogging.title = "";
                YamlLogging.writeMessage = "";
            } catch (Exception e) {
                LOG.error(Bytes.toString(bytes), e);
            }
        }
    } finally {
        bytes.writeLimit(limit);
        bytes.writePosition(position);
    }
}

[Buggy Hunk]
Wires.fromSizePrefixedBlobs(bytes) :

[Patch]
Wires.fromSizePrefixedBlobs(bytes, bytes.writePosition(),bytes.writeLimit()) :

[Demonstration 2]

[Buggy Method]
protected void extractOtherInformation(@NotNull String otherInformation, @NotNull DictionaryObjectBuilder builder) {
    // Try to extract plural forms
    if (StringUtils.startsWith(otherInformation, "Plural:") || StringUtils.startsWith(otherInformation, "fl.:")) {
        String pluralForm = StringUtils.substringAfter(otherInformation, ":");
        builder.setAdditionalForm(GrammaticalNumber.PLURAL, StringUtils.strip(pluralForm));
    } else // Try to extract verb forms
    if (StringUtils.startsWith(otherInformation, "presens")) {
        extractVerbForms(otherInformation, builder);
    } else // Try to extract adjective comparisons
    if (StringUtils.startsWithIgnoreCase(otherInformation, "komparativ")) {
        extractComparisonForms(otherInformation, builder);
    } else // Try to extract adjective forms
    if (StringUtils.startsWithIgnoreCase(otherInformation, "bestemt form")) {
        extractAdjectiveForms(otherInformation, builder);
    } else // Write to description string otherwise...
    if (StringUtils.isNotEmpty(otherInformation)) {
        builder.setDescription(StringUtils.strip(otherInformation));
    }
}

[Buggy Hunk]
protected void extractOtherInformation(@NotNull String otherInformation, @NotNull DictionaryObjectBuilder builder) {

[Patch]
void extractOtherInformation(@NotNull String otherInformation, @NotNull DictionaryObjectBuilder builder) {

[Demonstration 3]

[Buggy Method]
@Override
public void onCompleted() {
    Log.d("predictionData", "completed");
    recyclerView.setRefreshing(false);
}

[Buggy Hunk]
Log.d("predictionData", "completed");

[Patch]
Log.d(TAG, "completed");