This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LLM | Accuracy | Cost 1MT/Input | Correct answers | Total answers | |
---|---|---|---|---|---|
anthropic.claude-v1 | 75.41% | $11 | 46 | 61 | |
anthropic.claude-instant-v1 | 70.49% | $1.6 | 43 | 61 | |
text-davinci-003 | 62.3% | $1.5 | 38 | 61 | |
gpt-3.5-turbo | 50.82% | $30 | 31 | 61 | |
GPT-4 | not yet tested | $30 | - | 61 | |
anthropic.claude-v2 | not yet tested | $11.02 | - | 61 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!python3 | |
import os | |
import traceback | |
import datetime | |
source_base_path = '/tmp/sourcedir' | |
target_base_path = '/tmp/targetdir/' | |
current_mini_folder = 0 | |
files_counter = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package collisions.test; | |
import java.util.HashSet; | |
import java.util.Set; | |
import java.util.UUID; | |
public class UUIDToHashcodeUniquenessTestMain { | |
private final static int num_of_users = 1000 * 1000; | |
private final static int num_of_stacks = 50; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.io.IOException; | |
import java.lang.management.ManagementFactory; | |
import java.util.Random; | |
import java.util.UUID; | |
import org.apache.lucene.analysis.Analyzer; | |
import org.apache.lucene.analysis.WhitespaceAnalyzer; | |
import org.apache.lucene.document.Document; | |
import org.apache.lucene.document.Field; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import static org.junit.Assert.assertTrue; | |
import org.junit.Test; | |
public class MobileLikeSmallHeapDuringTestsEnforce { | |
public static final long MB = 1024 * 1024; | |
public static final long ANDROID_TYPICAL_MAX_HEAP_MB = 24; | |
public static final String XMX_ARGUMENT = "-Xmx" + ANDROID_TYPICAL_MAX_HEAP_MB + "m"; | |
@Test | |
public void assertHeapIsMobileLikeSmall() { |