repo stringlengths 1 191 ⌀ | file stringlengths 23 351 | code stringlengths 0 5.32M | file_length int64 0 5.32M | avg_line_length float64 0 2.9k | max_line_length int64 0 288k | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
Ludii | Ludii-master/Player/src/supplementary/experiments/scripts/ExItTrainingScriptsGenSnelliusImportanceSampling.java | package supplementary.experiments.scripts;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.regex.Pattern;
import game.Game;
import main.C... | 13,683 | 30.385321 | 135 | java |
Ludii | Ludii-master/Player/src/supplementary/experiments/scripts/ExItTrainingScriptsSmallGames.java | package supplementary.experiments.scripts;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.regex.Pattern;
import game.Game;
import main.C... | 8,761 | 27.083333 | 130 | java |
Ludii | Ludii-master/Player/src/supplementary/experiments/scripts/ExportLatexConcept.java | package supplementary.experiments.scripts;
import other.concept.Concept;
/**
* To print the concepts in the taxonomy latex format.
*
* @author Eric.Piette
*
*/
public class ExportLatexConcept
{
/**
* The main method.
*
* @param args
*/
public static void main(final String[] args)
{
final Concept[... | 1,778 | 20.433735 | 75 | java |
Ludii | Ludii-master/Player/src/supplementary/experiments/scripts/FindBestBaseAgentScriptsGen.java | package supplementary.experiments.scripts;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.Arrays... | 38,032 | 32.627763 | 223 | java |
Ludii | Ludii-master/Player/src/supplementary/experiments/scripts/FindBestStartingHeuristicsScriptsGen.java | package supplementary.experiments.scripts;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
import java.util.rege... | 29,051 | 38.472826 | 131 | java |
Ludii | Ludii-master/Player/src/supplementary/experiments/scripts/FindCrashingTrialScriptsGen.java | package supplementary.experiments.scripts;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Pattern;
import main.CommandLineArgParse;
im... | 8,506 | 29.382143 | 118 | java |
Ludii | Ludii-master/Player/src/supplementary/experiments/scripts/GenerateBiasedMCTSEvalScripts.java | package supplementary.experiments.scripts;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import java... | 27,099 | 30.733021 | 151 | java |
Ludii | Ludii-master/Player/src/supplementary/experiments/scripts/GenerateFeatureEvalScripts.java | package supplementary.experiments.scripts;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import java... | 26,858 | 31.051313 | 174 | java |
Ludii | Ludii-master/Player/src/supplementary/experiments/scripts/GenerateGatingScripts.java | package supplementary.experiments.scripts;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Pattern;
import game.Game;
import main.Comma... | 15,434 | 32.122318 | 131 | java |
Ludii | Ludii-master/Player/src/supplementary/experiments/scripts/IdentifyTopFeaturesSnelliusScripts.java | package supplementary.experiments.scripts;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import main.CommandLineArgParse;
import main.CommandLineArgP... | 10,138 | 29.265672 | 135 | java |
Ludii | Ludii-master/Player/src/supplementary/experiments/scripts/IdentifyTopFeaturesSnelliusScriptsAllGames.java | package supplementary.experiments.scripts;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import java.util.regex.Pattern;
import... | 14,523 | 30.573913 | 135 | java |
Ludii | Ludii-master/Player/src/supplementary/experiments/scripts/InitBestAgentsData.java | package supplementary.experiments.scripts;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Pattern;
import ... | 16,436 | 30.368321 | 153 | java |
Ludii | Ludii-master/Player/src/supplementary/experiments/scripts/OptimLudusHeuristicsScriptsGen.java | package supplementary.experiments.scripts;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import game.Game;
import main.CommandLineArgParse;
import ma... | 8,493 | 33.388664 | 134 | java |
Ludii | Ludii-master/Player/src/supplementary/experiments/scripts/TrainLudusScriptsGen.java | package supplementary.experiments.scripts;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import game.Game;
import main.CommandLineArgParse;
import ma... | 8,831 | 32.454545 | 134 | java |
Ludii | Ludii-master/Player/src/supplementary/experiments/scripts/TrainedFeaturesAndDecisionTreesPlayoutTimingScriptsGen.java | package supplementary.experiments.scripts;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import game.Game;
import main.CommandLineArgParse;
import ma... | 11,083 | 29.201635 | 126 | java |
Ludii | Ludii-master/Player/src/supplementary/experiments/scripts/TrainedFeaturesPlayoutTimingScriptsGen.java | package supplementary.experiments.scripts;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import game.Game;
import main.CommandLineArgParse;
import ma... | 10,039 | 27.603989 | 118 | java |
Ludii | Ludii-master/Player/src/supplementary/experiments/scripts/TrainingScriptsGenCorrConfIntervals.java | package supplementary.experiments.scripts;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import game.Game;
import main.CommandLineArgParse;
import ma... | 8,945 | 28.140065 | 157 | java |
Ludii | Ludii-master/Player/src/supplementary/experiments/scripts/TrainingScriptsGenFinalStatesBuffers.java | package supplementary.experiments.scripts;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import game.Game;
import main.CommandLineArgParse;
import ma... | 8,974 | 28.234528 | 161 | java |
Ludii | Ludii-master/Player/src/supplementary/experiments/speed/BreadthFirstExpansion.java | package supplementary.experiments.speed;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Pattern;
import game.Game;
import main.CommandLineArgParse;
import main.CommandLineArgParse.ArgOption;
import main.CommandLineArgParse.OptionTypes;
import main.FileHandling;
impo... | 8,253 | 27.364261 | 103 | java |
Ludii | Ludii-master/Player/src/supplementary/experiments/speed/PlayoutsPerSec.java | package supplementary.experiments.speed;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util... | 24,911 | 28.342756 | 138 | java |
Ludii | Ludii-master/Player/src/supplementary/experiments/speed/TimeTensorsRandomPlayouts.java | package supplementary.experiments.speed;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
import java.util.regex.Pattern;
import game.Game;
import main.CommandLineArgParse;
import main.CommandLineArgParse.ArgOption;
import main.CommandLineArgPa... | 8,158 | 28.669091 | 117 | java |
Ludii | Ludii-master/Player/src/supplementary/visualisation/FeatureToEPS.java | package supplementary.visualisation;
import java.awt.Color;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import bridge.Bridge;
import features.spatial.A... | 23,543 | 29.457956 | 126 | java |
Ludii | Ludii-master/Player/src/supplementary/visualisation/FeatureToTikz.java | package supplementary.visualisation;
import features.Feature;
import main.CommandLineArgParse;
import main.CommandLineArgParse.ArgOption;
import main.CommandLineArgParse.OptionTypes;
import main.StringRoutines;
public class FeatureToTikz
{
//-------------------------------------------------------------------------... | 1,681 | 21.131579 | 87 | java |
Ludii | Ludii-master/Player/test/ai/TestDefaultAIs.java | package ai;
import static org.junit.Assert.fail;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import org.junit.Test;
import compiler.Compiler;
import game.Game;
import main.FileHandling;
impo... | 3,451 | 21.128205 | 82 | java |
Ludii | Ludii-master/Player/test/ai/TestHeuristicStateValues.java | package ai;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import org.junit.Test;
import game.Game;
import compiler.Compiler;
import main.FileHandling;
import main.grammar.Description;
import ot... | 6,220 | 28.206573 | 114 | java |
Ludii | Ludii-master/Player/test/concepts/ConceptTests.java | package concepts;
import static org.junit.Assert.fail;
import org.junit.Test;
import other.concept.Concept;
/**
* Test for the huge concept enum in order to check taxo and child/parent.
*
* @author Eric.Piette
*/
public class ConceptTests
{
@Test
@SuppressWarnings("static-method")
public void ConceptLeaf()
... | 1,262 | 18.430769 | 82 | java |
Ludii | Ludii-master/Player/test/features/TestAmazonsFeatures.java | package features;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
import org.junit.Test;
import features.aspatial.AspatialFeature;
import features.feature_sets.BaseFeatureSet;
import features.feature_sets.LegacyFeatureSet... | 17,771 | 36.179916 | 170 | java |
Ludii | Ludii-master/Player/test/features/TestFeatureCombinations.java | package features;
import static org.junit.Assert.fail;
import java.util.List;
import org.junit.Test;
import features.spatial.Pattern;
import features.spatial.RelativeFeature;
import features.spatial.SpatialFeature;
import features.spatial.Walk;
import features.spatial.elements.FeatureElement.ElementType;
import fea... | 22,476 | 32.648204 | 155 | java |
Ludii | Ludii-master/Player/test/features/TestGomokuFeatures.java | package features;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
import org.junit.Test;
import features.aspatial.AspatialFeature;
import features.feature_sets.BaseFeatureSet;
import features.feature_sets.LegacyFeatureSet... | 7,610 | 33.912844 | 167 | java |
Ludii | Ludii-master/Player/test/features/TestHexFeatures.java | package features;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
import org.junit.Test;
import features.aspatial.AspatialFeature;
import features.feature_sets.BaseFeatureSet;
import features.feature_sets.LegacyFeatureSet;
import features.feature_sets.NaiveFeatureSet... | 11,083 | 31.034682 | 186 | java |
Ludii | Ludii-master/Player/test/features/TestKharbagaFeatures.java | package features;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
import org.junit.Test;
import features.aspatial.AspatialFeature;
import features.feature_sets.BaseFeatureSet;
import features.feature_sets.LegacyFeatureSet;
import features.feature_sets.NaiveFeatureSet... | 4,007 | 36.811321 | 127 | java |
Ludii | Ludii-master/Player/test/features/TestSPatterNetFeatureSet.java | package features;
import static org.junit.Assert.assertEquals;
import java.util.BitSet;
import java.util.List;
import org.junit.Test;
import features.feature_sets.network.JITSPatterNetFeatureSet;
import features.feature_sets.network.SPatterNetFeatureSet;
import features.generation.AtomicFeatureGenerator;
import fea... | 4,849 | 33.397163 | 118 | java |
Ludii | Ludii-master/Player/test/features/TestYavalathFeatures.java | package features;
import static org.junit.Assert.assertEquals;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
import org.junit.Test;
import features.aspatial.AspatialFeature;
import features.feature_sets.BaseFeatureSet;
import features.feature_sets.LegacyFeatureSet... | 4,521 | 30.402778 | 96 | java |
Ludii | Ludii-master/Player/test/games/BoardDistanceTest.java | package games;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
import org.junit.Test;
import game.Game;
import game.equipment.container.board.Board;
//import game.util.graph.Graph;
import other.GameLoader;
import other.topology.Cell;
import other.topology.Vertex;
//import game.util.g... | 12,475 | 26.299781 | 124 | java |
Ludii | Ludii-master/Player/test/games/CompilationTest.java | package games;
import static org.junit.Assert.fail;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import org.junit.Test;
import compiler.Compiler;
import game... | 7,918 | 25.48495 | 126 | java |
Ludii | Ludii-master/Player/test/games/DuplicateMovesTest.java | package games;
import static org.junit.Assert.fail;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import game.Game;
import game.rules.phase.Phase;
import game.rules.play.moves.Moves;
import main.FileHandling;
import other.AI;
import other.GameLoader;
import other.context.Context;
import ... | 2,645 | 23.5 | 92 | java |
Ludii | Ludii-master/Player/test/games/EfficiencyTest.java | package games;
import static org.junit.Assert.fail;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
import java.util.regex.Pattern;
import org.junit.Test;
import game.Game;
import... | 4,418 | 23.966102 | 82 | java |
Ludii | Ludii-master/Player/test/games/ErrorHandlingTests.java | package games;
import java.util.concurrent.ThreadLocalRandom;
import org.junit.Assert;
import org.junit.Test;
import game.Game;
import compiler.Compiler;
import main.grammar.Description;
import other.context.Context;
import other.trial.Trial;
//-----------------------------------------------------------------------... | 10,428 | 25.402532 | 84 | java |
Ludii | Ludii-master/Player/test/games/GameFileNamesTest.java | package games;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import org.junit.Test;
import game.Game;
import compiler.Compiler;
import main.FileHandling;
import main.grammar.Description;
//-----------------------------------------... | 2,200 | 22.923913 | 91 | java |
Ludii | Ludii-master/Player/test/games/GamesWithWebLink.java | package games;
import static org.junit.Assert.fail;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import org.junit.Test;
import game.Game;
import compiler.Com... | 3,325 | 22.928058 | 84 | java |
Ludii | Ludii-master/Player/test/games/GenerateRandomTestTrials.java | package games;
import static org.junit.Assert.fail;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.rng.core.RandomProviderDefau... | 4,241 | 26.907895 | 114 | java |
Ludii | Ludii-master/Player/test/games/GraphSize.java | package games;
import static org.junit.Assert.fail;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import org.junit.Test;
import game.Game;
import compiler.Com... | 3,446 | 24.917293 | 103 | java |
Ludii | Ludii-master/Player/test/games/ListGamesSorted.java | package games;
import static org.junit.Assert.fail;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.regex.Pattern;
import org.junit.Test;
import ... | 2,423 | 21.036364 | 83 | java |
Ludii | Ludii-master/Player/test/games/MancalaCountConsistency.java | package games;
import static org.junit.Assert.fail;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Pattern;
import org.apache.commons.rng.core.RandomProviderDefaultState;
import ... | 6,078 | 26.885321 | 116 | java |
Ludii | Ludii-master/Player/test/games/MemoryUsedGames.java | package games;
import static org.junit.Assert.fail;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.u... | 4,050 | 24.639241 | 107 | java |
Ludii | Ludii-master/Player/test/games/Node.java | package games;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
//-----------------------------------------------------------------------------
/**
* Pseudo UCT node for UCB cache test.
* @author cambolbro
*/
public class Node
{
public static final int BranchingFactor = 10;
priv... | 1,412 | 17.84 | 79 | java |
Ludii | Ludii-master/Player/test/games/OnePlayoutByGameTest.java | package games;
import static org.junit.Assert.fail;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
import java.util.regex.Pattern;
import org.junit.Test;
import game.Game;
import other.GameLoader;
import other.context.Context;
import other.tria... | 3,466 | 24.492647 | 82 | java |
Ludii | Ludii-master/Player/test/games/ParseAllLud.java | package games;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import org.junit.Test;
import grammar.Grammar;
import parser.Parser;
import main.FileHandling;
imp... | 2,903 | 25.4 | 85 | java |
Ludii | Ludii-master/Player/test/games/SanityChecks.java | package games;
import static org.junit.Assert.assertEquals;
import java.io.File;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
import org.junit.Test;
import game.Game;
import compiler.Compiler;
import main.FileHandling;
import main.grammar.Des... | 4,835 | 26.953757 | 110 | java |
Ludii | Ludii-master/Player/test/games/TestCustomPlayouts.java | package games;
import static org.junit.Assert.fail;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.concurrent.ThreadLocalRandom;
import java.util.regex.Pattern;
import org.apache.commons.rng.core.Random... | 7,627 | 25.394464 | 134 | java |
Ludii | Ludii-master/Player/test/games/TestDecision.java | package games;
import static org.junit.Assert.fail;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.junit.Test;
import game.Ga... | 12,187 | 31.501333 | 132 | java |
Ludii | Ludii-master/Player/test/games/TestEmptyInfo.java | package games;
import static org.junit.Assert.fail;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import org.junit.Test;
import game.Game;
import compiler.Compiler;
import main.FileHandling;
i... | 4,347 | 24.727811 | 107 | java |
Ludii | Ludii-master/Player/test/games/TestParallelPlayouts.java | package games;
import static org.junit.Assert.fail;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
i... | 10,676 | 29.593123 | 138 | java |
Ludii | Ludii-master/Player/test/games/TestParser.java | package games;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.regex.Pattern;
import org.junit.Test;
import grammar.Grammar;
import parser.Parser;
import main.FileHandling;
import main.grammar.Descri... | 2,661 | 25.888889 | 85 | java |
Ludii | Ludii-master/Player/test/games/TestTrialSerialization.java | package games;
import static org.junit.Assert.fail;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
import java.util.regex.Pattern;
import org.apache.commons.rng.core.RandomProviderDefaultState... | 11,487 | 29.472149 | 197 | java |
Ludii | Ludii-master/Player/test/games/TestTrialsIntegrityDENNIS.java | package games;
import static org.junit.Assert.fail;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.junit.Assert;
import org.ju... | 13,152 | 31.718905 | 132 | java |
Ludii | Ludii-master/Player/test/games/TestTrialsIntegrityERIC.java | package games;
import static org.junit.Assert.fail;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.junit.Test;
import compile... | 13,260 | 31.824257 | 132 | java |
Ludii | Ludii-master/Player/test/games/TestTrialsUndo.java | package games;
import static org.junit.Assert.fail;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.junit.Test;
import compiler.Compiler;
import game.G... | 37,134 | 34.13245 | 175 | java |
Ludii | Ludii-master/Player/test/games/TokensTest.java | package games;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import main.FileHandling;
/**
* Unit Test to count the number of Tokens for each game
*
* @author Eric.Piette
*/
public class TokensTest... | 4,474 | 25.323529 | 433 | java |
Ludii | Ludii-master/Player/test/games/UCBCacheTest.java | package games;
import java.util.HashMap;
import java.util.Map;
import org.junit.Test;
//-----------------------------------------------------------------------------
/**
* Test whether caching of UCB calculation helps.
* @author cambolbro
*/
public class UCBCacheTest
{
private static final double C = 0.5;
int... | 3,868 | 23.487342 | 79 | java |
Ludii | Ludii-master/Player/test/games/WarningCrashTest.java | package games;
import static org.junit.Assert.fail;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.regex.Pattern;
import org.junit.Test;
import game.Game;
import main.FileHandling;
import main.grammar.Description;
import othe... | 2,852 | 22.195122 | 104 | java |
Ludii | Ludii-master/Player/test/games/options/CompilationTestWithOptions.java | package games.options;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import org.junit.Test;
import game.Game;
import main.StringRoutines;
import main.collections.ListUtils;
import main.options.Option;
import other.GameLoader;
//------------------------------... | 2,857 | 24.517857 | 96 | java |
Ludii | Ludii-master/Player/test/games/options/OnePlayoutPerGameTestWithOptions.java | package games.options;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ThreadLocalRandom;
import java.util.regex.Pattern;
import org.junit.Test;
import game.Game;
import main.StringRoutines;
import main.collections.ListUtils;
import main.options.Option;
import othe... | 3,605 | 26.112782 | 97 | java |
Ludii | Ludii-master/Player/test/games/options/TestHexOptions.java | package games.options;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import game.Game;
import other.GameLoader;
/**
* A small unit test to make sure that we can correctly compile
* Hex with options. This unit test tries a couple of different
* board sizes and makes sure we end up with... | 1,164 | 25.477273 | 84 | java |
Ludii | Ludii-master/Player/test/games/options/TestParallelPlayoutsWithOptions.java | package games.options;
import static org.junit.Assert.fail;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.F... | 11,815 | 31.640884 | 139 | java |
Ludii | Ludii-master/Player/test/games/symmetry/TestCanonicalHashes.java | package games.symmetry;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.junit.Assert;
import org.junit.Test;
import game.Game;
import main.Constants;
import other.GameLoader;
import other.action.move.ActionAdd;
import other.context.Context;
import other.move.Move;
import other.state... | 9,565 | 32.921986 | 144 | java |
Ludii | Ludii-master/Player/test/games/symmetry/TestHexSymmetries.java | package games.symmetry;
import org.junit.Assert;
import org.junit.Test;
import game.equipment.container.Container;
import game.equipment.container.board.Board;
import game.functions.dim.DimConstant;
import game.functions.graph.generators.basis.hex.HexagonOnHex;
import game.types.board.SiteType;
import other.topology.... | 4,404 | 30.464286 | 124 | java |
Ludii | Ludii-master/Player/test/games/symmetry/TestSmallGameHashes.java | package games.symmetry;
import org.junit.Test;
import game.Game;
import other.GameLoader;
import other.context.Context;
import other.state.symmetry.AcceptAll;
import other.trial.Trial;
public class TestSmallGameHashes
{
@Test
public static void testBicycleGameDoesntCrash()
{
final Game game1 = GameLoader.loadGa... | 887 | 24.371429 | 89 | java |
Ludii | Ludii-master/Player/test/games/symmetry/TestSquareSymmetries.java | package games.symmetry;
import org.junit.Assert;
import org.junit.Test;
import game.equipment.container.Container;
import game.equipment.container.board.Board;
import game.functions.dim.DimConstant;
import game.functions.graph.generators.basis.square.RectangleOnSquare;
import game.types.board.SiteType;
import other.t... | 4,091 | 28.652174 | 98 | java |
Ludii | Ludii-master/Player/test/other/TestChunkSets.java | package other;
import static org.junit.Assert.assertEquals;
import java.util.concurrent.ThreadLocalRandom;
import org.junit.Test;
import gnu.trove.list.array.TIntArrayList;
import main.collections.ChunkSet;
/**
* Some tests for ChunkSets
*
* @author Dennis Soemers
*/
@SuppressWarnings("static-method")
public c... | 5,099 | 24.888325 | 106 | java |
Ludii | Ludii-master/Player/test/other/TestDefaultGameLudPath.java | package other;
import org.junit.Test;
import game.Game;
import main.Constants;
/**
* Unit test to ensure that our lud path for the default game
* in Constants is set correctly, to something that actually loads
* a game.
*
* @author Dennis Soemers
*/
@SuppressWarnings("static-method")
public class TestDefaultGa... | 643 | 19.125 | 77 | java |
Ludii | Ludii-master/Player/test/other/TestLudFilesOnlyASCII.java | package other;
import static org.junit.Assert.fail;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
//-----------------------------------------------------------------------------
/*... | 1,756 | 20.168675 | 137 | java |
Ludii | Ludii-master/Player/test/other/TestMath.java | package other;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import main.collections.ListUtils;
/**
* Some tests for math functions
*
* @author Dennis Soemers
*/
public class TestMath
{
@SuppressWarnings("static-method")
@Test
public void testCombinations()
{
assertEquals(ListUtils... | 782 | 24.258065 | 70 | java |
Ludii | Ludii-master/Player/test/other/TestZhangShasha.java | package other;
import static org.junit.Assert.assertEquals;
import java.io.IOException;
import org.junit.Test;
import utils.data_structures.support.zhang_shasha.Tree;
/**
* Tests for Zhang Shasha tree edit distance
*
* @author Dennis Soemers
*/
@SuppressWarnings("static-method")
public class TestZhangShasha
... | 1,306 | 21.534483 | 62 | java |
Ludii | Ludii-master/Player/test/tensor/TestStateMoveTensors.java | package tensor;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import org.junit.Test;
import game.Game;
import compiler.Compiler;
import main.FileHandling;
import main.grammar.Description;
impor... | 3,590 | 22.019231 | 88 | java |
Ludii | Ludii-master/Player/test/tensor/TestYavalathTensors.java | package tensor;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import utils.LudiiGameWrapper;
import utils.LudiiStateWrapper;
/**
* Unit test to test a bunch... | 7,833 | 33.817778 | 106 | java |
Ludii | Ludii-master/Player/test/travis/TravisTest.java | package travis;
import static org.junit.Assert.fail;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Arra... | 37,900 | 31.814719 | 123 | java |
Ludii | Ludii-master/Player/test/travis/integrity/TestTrialsIntegrity.java | package travis.integrity;
import static org.junit.Assert.fail;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.r... | 14,517 | 32.146119 | 131 | java |
Ludii | Ludii-master/Player/test/travis/integrity/TestTrialsIntegrityPuzzle.java | package travis.integrity;
import static org.junit.Assert.fail;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.junit.Test;
imp... | 9,328 | 31.505226 | 129 | java |
Ludii | Ludii-master/Player/test/travis/quickTests/AllDifferentIdConceptEnum.java | package travis.quickTests;
import static org.junit.Assert.fail;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import gnu.trove.list.array.TIntArrayList;
import other.concept.Concept;
import other.concept.ConceptComputationType;
import other.concept.ConceptDataType;
import other.concept.C... | 3,333 | 21.993103 | 126 | java |
Ludii | Ludii-master/Player/test/travis/quickTests/FVectorTests.java | package travis.quickTests;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import main.collections.FVector;
/**
* Unit tests for FVector
*
* @author Dennis Soemers
*/
@SuppressWarnings("static-method")
public class FVectorTests
{
private static final float FLOAT_TOLERANCE = 0.0001f;
... | 1,111 | 24.860465 | 64 | java |
Ludii | Ludii-master/Player/test/travis/quickTests/HashTests.java | package travis.quickTests;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Test;
import game.Game;
import game.types.board.SiteType;
import main.Constants;
import other.GameLoader;
import other.action.move.mov... | 9,787 | 30.371795 | 187 | java |
Ludii | Ludii-master/Player/test/travis/quickTests/TestDemos.java | package travis.quickTests;
import static org.junit.Assert.fail;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Pattern;
import org.json.JSONArray;
import org.json.JSONObject;
... | 6,978 | 28.323529 | 142 | java |
Ludii | Ludii-master/Player/test/travis/quickTests/TestJNIClasses.java | package travis.quickTests;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.fail;
import org.junit.Test;
/**
* Unit test to make sure that the fully qualified names of classes that we
* access by those exact names through JNI (for example in Polygames) don't
* change.
*
* @author Den... | 651 | 18.176471 | 75 | java |
Ludii | Ludii-master/Player/test/travis/quickTests/TestPregenGraphFunction.java | package travis.quickTests;
import static org.junit.Assert.fail;
import java.util.ArrayList;
import java.util.List;
import org.junit.Test;
import game.equipment.container.board.Board;
import game.functions.dim.DimConstant;
import game.functions.floats.FloatConstant;
import game.functions.graph.GraphFunction;
import ... | 25,007 | 32.658143 | 261 | java |
Ludii | Ludii-master/Player/test/travis/quickTests/ai/TestPrioritizedExperienceReplay.java | package travis.quickTests.ai;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.util.List;
import org.junit.Test;
import main.collections.FVector;
import training.expert_iteration.ExItExperience;
import utils.data_structures.experience_buffers.PrioritizedReplayBu... | 4,614 | 26.470238 | 112 | java |
Ludii | Ludii-master/Player/test/travis/recons/ReconstructionTest.java | package travis.recons;
import static org.junit.Assert.fail;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import org.junit.Test;
import completer.Completion;
... | 3,433 | 25.828125 | 135 | java |
Ludii | Ludii-master/PlayerDesktop/src/app/DesktopApp.java | package app;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.Frame;
import java.awt.GraphicsDevice;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ItemEvent;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.FileI... | 27,457 | 24.903774 | 161 | java |
Ludii | Ludii-master/PlayerDesktop/src/app/JFrameListener.java | package app;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import javax.swing.JFrame;
import app.move.MoveHandler;
import game.util.directions.AbsoluteDirection;
/**
* JFrame for listening to keyboard button presses.
* @author Matthew.Stephenson
*
*/
public class JFrameListener extends JFra... | 2,223 | 22.913978 | 87 | java |
Ludii | Ludii-master/PlayerDesktop/src/app/PlayerCLI.java | package app;
import java.util.Arrays;
import gameDistance.CompareAllDistanceMetrics;
import kilothon.Kilothon;
import ludemeplexDetection.LudemeplexDetection;
import main.CommandLineArgParse;
import main.CommandLineArgParse.ArgOption;
import main.CommandLineArgParse.OptionTypes;
import skillTraceAnalysis.SkillTraceAn... | 5,404 | 36.020548 | 86 | java |
Ludii | Ludii-master/PlayerDesktop/src/app/StartDesktopApp.java | package app;
/**
* Main point of Entry for running the Ludii application.
*
* @author Matthew.Stephenson and Dennis Soemers
*/
public class StartDesktopApp
{
private static DesktopApp desktopApp = null;
public static void main(final String[] args)
{
// The actual launching
if (args.length == 0)
{
de... | 559 | 17.064516 | 57 | java |
Ludii | Ludii-master/PlayerDesktop/src/app/display/MainWindowDesktop.java | package app.display;
import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import java.awt.RenderingHints;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
impor... | 14,197 | 26.25144 | 157 | java |
Ludii | Ludii-master/PlayerDesktop/src/app/display/SVGWindow.java | package app.display;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import javax.swing.JPanel;
import main.Constants;
//-----------------------------------------------------------------------------
/**
* SVG viewer.
*
* @author cambolbro
*/
public class SVGWindow extends... | 1,128 | 21.58 | 83 | java |
Ludii | Ludii-master/PlayerDesktop/src/app/display/dialogs/AboutDialog.java | package app.display.dialogs;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import app.DesktopApp;
import app.PlayerApp;
import game.equipment.component.Component;
import game.equipment.container.Container;
import main.Constants;
/*... | 3,525 | 30.20354 | 97 | java |
Ludii | Ludii-master/PlayerDesktop/src/app/display/dialogs/DeveloperDialog.java | package app.display.dialogs;
import java.awt.BorderLayout;
import java.awt.EventQueue;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Vector;
import javax.swing.JCheckBox;
impo... | 41,039 | 31.188235 | 194 | java |
Ludii | Ludii-master/PlayerDesktop/src/app/display/dialogs/EvaluationDialog.java | package app.display.dialogs;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.FlowLayout;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.M... | 20,001 | 31.952224 | 160 | java |
Ludii | Ludii-master/PlayerDesktop/src/app/display/dialogs/GameLoaderDialog.java | package app.display.dialogs;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dialog;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.KeyEventDispatcher;
import java.awt.KeyboardFocusManager;
import java.awt.Window;
import java.awt.event.FocusAdapter;
im... | 22,018 | 24.514484 | 136 | java |
Ludii | Ludii-master/PlayerDesktop/src/app/display/dialogs/ReconstructionDialog.java | package app.display.dialogs;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import javax.swing.JButton;
import javax.swing.JDialog... | 8,083 | 30.701961 | 219 | java |
Ludii | Ludii-master/PlayerDesktop/src/app/display/dialogs/SVGViewerDialog.java | package app.display.dialogs;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dialog;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.KeyEventDispatcher;
import java.awt.KeyboardFocusManager;
import java.awt.Window;
import java.awt.event.FocusAdapter;
im... | 22,129 | 23.949267 | 126 | java |
Ludii | Ludii-master/PlayerDesktop/src/app/display/dialogs/SettingsDialog.java | package app.display.dialogs;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.EnumSe... | 33,240 | 32.747208 | 209 | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.