Skip to content

Commit

Permalink
style: spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
realdavidvega committed May 30, 2024
1 parent 7b54984 commit 1ad9a66
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ internal class GptBytePairEncoding(params: GptBytePairEncodingParams) : Encoding
}

private fun maxTokenCountReached(maxTokenCount: Int?, tokenCount: Int): Boolean =
maxTokenCount != null && maxTokenCount <= tokenCount
maxTokenCount != null && maxTokenCount.compareTo(tokenCount) <= 0

private fun maxTokenCountNotReached(maxTokenCount: Int?, tokenCount: Int): Boolean =
!maxTokenCountReached(maxTokenCount, tokenCount)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import com.xebia.functional.tokenizer.EncodingType.O200K_BASE
import com.xebia.functional.tokenizer.EncodingType.CL100K_BASE
import com.xebia.functional.tokenizer.EncodingType.P50K_BASE
import com.xebia.functional.tokenizer.EncodingType.R50K_BASE

import kotlin.jvm.JvmStatic

/**
Expand Down

0 comments on commit 1ad9a66

Please sign in to comment.