anon-iclr-submission/benchname-bug-localization huggingface dataset:
Repository: auth0/auth0.android
Issue: Documentation for addSignUpParameters makes little sense

### Describe the problem
Currently the documentation for `addSignUpParameters` makes little to no sense. It states:
```
// Define your custom fields
val metadata = mapOf("key"  to "value")
// Define the sign up parameters, adding the user_metadata
val params = mapOf("user_metadata", "metadata")
// Set the parameters in your request
signUpRequest.addSignUpParameters(params);
```

This passes the string `metadata` to the "user_metadata", rather than `{"key"="value"}`.
In addition the documentation contains a semicolon, which implies this is still Java code but the lines above are in kotlin.

### What was the expected behavior?
Documentation should be improved to make it clearer what the intended usage is:

```
val metadata = mapOf("key"  to "value")
// Define the sign up parameters, adding the user_metadata
val params = mapOf("user_metadata", "$metadata")
// Set the parameters in your request
signUpRequest.addSignUpParameters(params)
```

### Reproduction
Just read the documentation on `SignUpRequest.kt`

### Environment
Version 2.6.0

Changed files:
auth0/src/main/java/com/auth0/android/request/SignUpRequest.kt

diff --git a/auth0/src/main/java/com/auth0/android/request/SignUpRequest.kt b/auth0/src/main/java/com/auth0/android/request/SignUpRequest.kt
index e196cdf..039c058 100755
--- a/auth0/src/main/java/com/auth0/android/request/SignUpRequest.kt
+++ b/auth0/src/main/java/com/auth0/android/request/SignUpRequest.kt
@@ -23,27 +23,11 @@ public class SignUpRequest
     /**
      * Add additional parameters to be sent only when creating a user.
      *
-     *
-     * A common use case for this is storing extra information in the user metadata.
-     * To set user metadata you have to wrap your custom properties in a map containing
-     * a field `user_metadadata`:
-     *
-     * ```
-     * // Define your custom fields
-     * val metadata = mapOf("key"  to "value")
-     *
-     * // Define the sign up parameters, adding the user_metadata
-     * val params = mapOf("user_metadata", "metadata")
-     *
-     * // Set the parameters in your request
-     * signUpRequest.addSignUpParameters(params);
-     * ```
+     * `user_metadata` should be supplied to [com.auth0.android.authentication.AuthenticationAPIClient.signUp]
      *
      * @param parameters sent with the request and must be non-null
      * @return itself
      * @see ParameterBuilder
-     *
-     * @see [User Metadata documentation](https://auth0.com/docs/users/concepts/overview-user-metadata)
      */
     public fun addSignUpParameters(parameters: Map<String, String>): SignUpRequest {
         signUpRequest.addParameters(parameters)
Repository: horizontalsystems/bitcoin-kit-android
Issue: Kit syncs with expired peers

Given:
* 1 restored block
* 2 peers with the best block earlier than local checkpoint block

Kit syncs with the 2nd peer, whereas it should disconnect it.

Changed files:
bitcoinkit/src/main/kotlin/io/horizontalsystems/bitcoinkit/blocks/BlockSyncer.kt

diff --git a/bitcoinkit/src/main/kotlin/io/horizontalsystems/bitcoinkit/blocks/BlockSyncer.kt b/bitcoinkit/src/main/kotlin/io/horizontalsystems/bitcoinkit/blocks/BlockSyncer.kt
index 9eebb75b..91c008b5 100644
--- a/bitcoinkit/src/main/kotlin/io/horizontalsystems/bitcoinkit/blocks/BlockSyncer.kt
+++ b/bitcoinkit/src/main/kotlin/io/horizontalsystems/bitcoinkit/blocks/BlockSyncer.kt
@@ -1,7 +1,7 @@
 package io.horizontalsystems.bitcoinkit.blocks
 
-import io.horizontalsystems.bitcoinkit.core.RealmFactory
 import io.horizontalsystems.bitcoinkit.core.ISyncStateListener
+import io.horizontalsystems.bitcoinkit.core.RealmFactory
 import io.horizontalsystems.bitcoinkit.managers.AddressManager
 import io.horizontalsystems.bitcoinkit.managers.BloomFilterManager
 import io.horizontalsystems.bitcoinkit.models.Block
@@ -128,6 +128,7 @@ class BlockSyncer(private val realmFactory: RealmFactory,
 
         if (result.isEmpty()) {
             realm.where(Block::class.java)
+                    .greaterThan("height", network.checkpointBlock.height)
                     .sort("height", Sort.DESCENDING)
                     .findAll()
                     .take(10)
Repository: horizontalsystems/bitcoin-kit-android
Issue: Sending Coins Crashes App

java.lang.IllegalArgumentException: Invalid query: field 'hashHexReversed' not found in class 'SentTransaction'.


Changed files:
bitcoinkit/src/main/kotlin/io/horizontalsystems/bitcoinkit/transactions/TransactionSyncer.kt
bitcoinkit/src/main/kotlin/io/horizontalsystems/bitcoinkit/models/SentTransaction.kt

diff --git a/bitcoinkit/src/main/kotlin/io/horizontalsystems/bitcoinkit/models/SentTransaction.kt b/bitcoinkit/src/main/kotlin/io/horizontalsystems/bitcoinkit/models/SentTransaction.kt
index be31b05c..c3765a40 100644
--- a/bitcoinkit/src/main/kotlin/io/horizontalsystems/bitcoinkit/models/SentTransaction.kt
+++ b/bitcoinkit/src/main/kotlin/io/horizontalsystems/bitcoinkit/models/SentTransaction.kt
@@ -6,12 +6,12 @@ import io.realm.annotations.PrimaryKey
 open class SentTransaction() : RealmObject() {
 
     @PrimaryKey
-    var reversedHashHex: String = ""
+    var hashHexReversed: String = ""
     var firstSendTime: Long = System.currentTimeMillis()
     var lastSendTime: Long = System.currentTimeMillis()
     var retriesCount: Int = 0
 
     constructor(reversedHashHex: String) : this() {
-        this.reversedHashHex = reversedHashHex
+        this.hashHexReversed = reversedHashHex
     }
 }
diff --git a/bitcoinkit/src/main/kotlin/io/horizontalsystems/bitcoinkit/transactions/TransactionSyncer.kt b/bitcoinkit/src/main/kotlin/io/horizontalsystems/bitcoinkit/transactions/TransactionSyncer.kt
index e91b048c..d0125fe7 100644
--- a/bitcoinkit/src/main/kotlin/io/horizontalsystems/bitcoinkit/transactions/TransactionSyncer.kt
+++ b/bitcoinkit/src/main/kotlin/io/horizontalsystems/bitcoinkit/transactions/TransactionSyncer.kt
@@ -58,10 +58,12 @@ class TransactionSyncer(
                 }
             }
 
-            return realm.where(Transaction::class.java)
+            val pendingTransactions = realm.where(Transaction::class.java)
                     .equalTo("status", Transaction.Status.NEW)
                     .findAll()
                     .filter(filterByTime)
+
+            return realm.copyFromRealm(pendingTransactions)
         }
     }