Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ protected ServiceSettings getServiceSettingsFromMap(Map<String, Object> serviceS

private static float generateEmbedding(String input, int position) {
// Ensure non-negative and non-zero values for features
return Math.abs(input.hashCode()) + 1 + position;
return Integer.toUnsignedLong(input.hashCode()) + 1 + position;
}

public static class Configuration {
Expand Down