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/Mining/src/gameDistance/metrics/bagOfWords/Overlap.java |
package gameDistance.metrics.bagOfWords;
import java.util.Map;
import game.Game;
import gameDistance.datasets.Dataset;
import gameDistance.metrics.DistanceMetric;
import main.Constants;
//-----------------------------------------------------------------------------
/**
* Percentage of overlapping entries
*
* @... | 1,275 | 23.538462 | 120 | java |
Ludii | Ludii-master/Mining/src/gameDistance/metrics/sequence/GlobalAlignment.java |
package gameDistance.metrics.sequence;
import java.util.List;
import java.util.Map;
import game.Game;
import gameDistance.datasets.Dataset;
import gameDistance.metrics.DistanceMetric;
import gameDistance.utils.DistanceUtils;
//-----------------------------------------------------------------------------
/**
* Use... | 2,823 | 31.837209 | 120 | java |
Ludii | Ludii-master/Mining/src/gameDistance/metrics/sequence/Levenshtein.java |
package gameDistance.metrics.sequence;
import java.util.List;
import java.util.Map;
import game.Game;
import gameDistance.datasets.Dataset;
import gameDistance.metrics.DistanceMetric;
//-----------------------------------------------------------------------------
/**
* https://en.wikipedia.org/wiki/Levenshtein_di... | 1,482 | 28.078431 | 147 | java |
Ludii | Ludii-master/Mining/src/gameDistance/metrics/sequence/LocalAlignment.java |
package gameDistance.metrics.sequence;
import java.util.List;
import java.util.Map;
import game.Game;
import gameDistance.datasets.Dataset;
import gameDistance.metrics.DistanceMetric;
import gameDistance.utils.DistanceUtils;
//-----------------------------------------------------------------------------
/**
* Use... | 2,445 | 30.766234 | 120 | java |
Ludii | Ludii-master/Mining/src/gameDistance/metrics/sequence/RepeatedLocalAlignment.java |
package gameDistance.metrics.sequence;
import java.util.List;
import java.util.Map;
import game.Game;
import gameDistance.datasets.Dataset;
import gameDistance.metrics.DistanceMetric;
import gameDistance.utils.DistanceUtils;
//-----------------------------------------------------------------------------
/**
* Use... | 4,381 | 28.213333 | 120 | java |
Ludii | Ludii-master/Mining/src/gameDistance/metrics/treeEdit/Apted.java | package gameDistance.metrics.treeEdit;
import java.util.List;
import java.util.Map;
import game.Game;
import gameDistance.datasets.Dataset;
import gameDistance.metrics.DistanceMetric;
import gameDistance.utils.apted.costmodel.StringUnitCostModel;
import gameDistance.utils.apted.distance.APTED;
import gameDistance.uti... | 2,069 | 35.964286 | 134 | java |
Ludii | Ludii-master/Mining/src/gameDistance/metrics/treeEdit/ZhangShasha.java | package gameDistance.metrics.treeEdit;
import java.util.Map;
import game.Game;
import gameDistance.datasets.Dataset;
import gameDistance.metrics.DistanceMetric;
import utils.data_structures.support.zhang_shasha.Tree;
/**
* Returns Zhang-Shasha tree edit distance.
* https://www.researchgate.net/publication/22061823... | 1,045 | 27.27027 | 136 | java |
Ludii | Ludii-master/Mining/src/gameDistance/utils/DistanceUtils.java | package gameDistance.utils;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.HashMap;
import java.util.Map;
i... | 7,681 | 31.413502 | 151 | java |
Ludii | Ludii-master/Mining/src/gameDistance/utils/apted/costmodel/CostModel.java | /* MIT License
*
* Copyright (c) 2017 Mateusz Pawlik
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 2,413 | 34.5 | 80 | java |
Ludii | Ludii-master/Mining/src/gameDistance/utils/apted/costmodel/PerEditOperationStringNodeDataCostModel.java | /* MIT License
*
* Copyright (c) 2017 Mateusz Pawlik
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 3,027 | 30.216495 | 113 | java |
Ludii | Ludii-master/Mining/src/gameDistance/utils/apted/costmodel/StringUnitCostModel.java | /* MIT License
*
* Copyright (c) 2017 Mateusz Pawlik
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 2,567 | 33.702703 | 91 | java |
Ludii | Ludii-master/Mining/src/gameDistance/utils/apted/distance/APTED.java | /* MIT License
*
* Copyright (c) 2017 Mateusz Pawlik
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 81,165 | 43.498904 | 228 | java |
Ludii | Ludii-master/Mining/src/gameDistance/utils/apted/distance/AllPossibleMappingsTED.java | /* MIT License
*
* Copyright (c) 2017 Mateusz Pawlik
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 11,614 | 32.961988 | 123 | java |
Ludii | Ludii-master/Mining/src/gameDistance/utils/apted/node/Node.java | /* MIT License
*
* Copyright (c) 2017 Mateusz Pawlik
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 4,012 | 28.947761 | 104 | java |
Ludii | Ludii-master/Mining/src/gameDistance/utils/apted/node/NodeIndexer.java | /* MIT License
*
* Copyright (c) 2017 Mateusz Pawlik
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 19,113 | 31.562181 | 107 | java |
Ludii | Ludii-master/Mining/src/gameDistance/utils/apted/node/StringNodeData.java | /* MIT License
*
* Copyright (c) 2017 Mateusz Pawlik
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 1,712 | 29.052632 | 80 | java |
Ludii | Ludii-master/Mining/src/gameDistance/utils/apted/parser/BracketStringInputParser.java | /* MIT License
*
* Copyright (c) 2017 Mateusz Pawlik, Nikolaus Augsten
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* ... | 2,643 | 39.060606 | 111 | java |
Ludii | Ludii-master/Mining/src/gameDistance/utils/apted/parser/InputParser.java | /* MIT License
*
* Copyright (c) 2017 Mateusz Pawlik
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 1,644 | 35.555556 | 80 | java |
Ludii | Ludii-master/Mining/src/gameDistance/utils/apted/test/java/CorrectnessTest.java | package gameDistance.utils.apted.test.java;
/* MIT License
*
* Copyright (c) 2017 Mateusz Pawlik
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without... | 8,632 | 32.076628 | 100 | java |
Ludii | Ludii-master/Mining/src/gameDistance/utils/apted/test/java/PerEditOperationCorrectnessTest.java | package gameDistance.utils.apted.test.java;
/* MIT License
*
* Copyright (c) 2017 Mateusz Pawlik
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without... | 5,441 | 30.824561 | 191 | java |
Ludii | Ludii-master/Mining/src/gameDistance/utils/apted/util/CommandLine.java | /* MIT License
*
* Copyright (c) 2017 Mateusz Pawlik
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... | 11,227 | 36.178808 | 155 | java |
Ludii | Ludii-master/Mining/src/gameDistance/utils/apted/util/FormatUtilities.java | /* MIT License
*
* Copyright (c) 2017 Nikolaus Augsten
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, mo... | 11,278 | 26.442822 | 106 | java |
Ludii | Ludii-master/Mining/src/ludemeplexDetection/DatabaseFunctions.java | package ludemeplexDetection;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import game.Game;
import main.grammar.Call;
import main.... | 14,447 | 33.156028 | 188 | java |
Ludii | Ludii-master/Mining/src/ludemeplexDetection/GetLudemeInfo.java | package ludemeplexDetection;
import java.util.Collection;
import java.util.List;
import grammar.Grammar;
import main.EditorHelpData;
import main.grammar.LudemeInfo;
import main.grammar.Symbol.LudemeType;
//-----------------------------------------------------------------------------
/**
* Get ludeme info from Java... | 3,354 | 23.851852 | 82 | java |
Ludii | Ludii-master/Mining/src/ludemeplexDetection/LudemeplexDetection.java | package ludemeplexDetection;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import game.Game;
import main.StringRoutines;
import main.grammar.Call;
import other.GameLoader;
import utils.DBGameInfo;
/**
* Detects all ludemes and ludemeplexes wit... | 5,790 | 36.36129 | 172 | java |
Ludii | Ludii-master/Mining/src/reconstruction/ReconstructionGenerator.java | package reconstruction;
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.util.ArrayList;
import java.ut... | 14,203 | 39.23796 | 521 | java |
Ludii | Ludii-master/Mining/src/reconstruction/completer/CompleterWithPrepro.java | package reconstruction.completer;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
impor... | 35,799 | 30.02253 | 223 | java |
Ludii | Ludii-master/Mining/src/reconstruction/output/UpdateGameRulesetsTable.java | package reconstruction.output;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import java.util.re... | 8,745 | 32.899225 | 177 | java |
Ludii | Ludii-master/Mining/src/reconstruction/output/UpdateReconsGame.java | package reconstruction.output;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import j... | 6,681 | 29.372727 | 160 | java |
Ludii | Ludii-master/Mining/src/reconstruction/preprocessing/ComputeCommonExpectedConcepts.java | package reconstruction.preprocessing;
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.lang.reflect.Met... | 11,556 | 31.01385 | 153 | java |
Ludii | Ludii-master/Mining/src/reconstruction/preprocessing/FormatRulesetAndIdOnOneLine.java | package reconstruction.preprocessing;
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.FileHandling;
import main.StringRou... | 3,676 | 31.254386 | 138 | java |
Ludii | Ludii-master/Mining/src/reconstruction/preprocessing/PreProcessReconstruction.java | package reconstruction.preprocessing;
/**
* Run the preprocessing steps of the recons process (not the CSN generation).
*
* @author Eric.Piette
*/
public final class PreProcessReconstruction
{
public static void main(final String[] args)
{
System.out.println("********** Generate all the complete ruleset descr... | 569 | 30.666667 | 110 | java |
Ludii | Ludii-master/Mining/src/reconstruction/utils/FormatReconstructionOutputs.java | package reconstruction.utils;
import java.util.ArrayList;
import java.util.List;
import main.StringRoutines;
/**
* Format the generation reconstructions.
* @author Eric.Piette
*/
public class FormatReconstructionOutputs
{
/**
* Nicely indents the description in entry.
*/
public static String indentNicely(fi... | 2,438 | 24.14433 | 93 | java |
Ludii | Ludii-master/Mining/src/skillTraceAnalysis/SkillTraceAnalysis.java | package skillTraceAnalysis;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import game.Game;
import main.FileHandli... | 2,874 | 29.263158 | 164 | java |
Ludii | Ludii-master/Mining/src/translate/TranslateToSwedish.java | package translate;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
import java.n... | 4,141 | 30.861538 | 142 | java |
Ludii | Ludii-master/Mining/src/utils/DBGameInfo.java | package utils;
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import game.Game;
import main.options.Ruleset;
/**
* Gets the unique name representation for a given game object (including ruleset name).
*
... | 3,501 | 27.942149 | 107 | java |
Ludii | Ludii-master/Mining/src/utils/ExportGameType.java | package utils;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.lang.reflect.Field;
import java.util.regex.Pattern;
import game.Game;
import game.types.state.GameType;
import main.FileHandling;
import main.StringRoutines;
i... | 2,557 | 26.212766 | 107 | java |
Ludii | Ludii-master/Mining/src/utils/IdRuleset.java | package utils;
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 game.Game;
import gnu.trove.list.array.TIntArrayList;
import main.Constants;
import main.opt... | 3,023 | 27.8 | 95 | java |
Ludii | Ludii-master/Mining/src/utils/RulesetNames.java | package utils;
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 java.util.regex.Pattern;
import game.Game;
import main.options.Ruleset;
/**
* Helper class to extract standardised (game+ruleset) names ... | 3,459 | 25.821705 | 92 | java |
Ludii | Ludii-master/Mining/src/utils/agents/GenerateBaseAgentScoresDatabaseCSVs.java | package utils.agents;
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.HashMap;
import java.util.List;
import java.util.Map;
import java.u... | 10,811 | 28.867403 | 131 | java |
Ludii | Ludii-master/Mining/src/utils/agents/GeneratePortfolioAgentScoresDatabaseCSV.java | package utils.agents;
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 game.Game;
import gnu... | 9,176 | 31.2 | 131 | java |
Ludii | Ludii-master/Mining/src/utils/bgg/BggData.java | package utils.bgg;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.swing.JOptionPane;
//----------------------------------------... | 9,653 | 25.742382 | 120 | java |
Ludii | Ludii-master/Mining/src/utils/bgg/BggGame.java | package utils.bgg;
import java.util.ArrayList;
import java.util.List;
/**
* Record of a BGG game entry.
* @author cambolbro
*/
public class BggGame
{
private final int index;
private final int bggId;
private final String name;
private final String date;
private final String[] details;
private f... | 1,247 | 14.6 | 62 | java |
Ludii | Ludii-master/Mining/src/utils/bgg/Database.java | package utils.bgg;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import main.AliasesData;
public class Database
{
/** valid game Ids for the recommendation process. *... | 3,918 | 26.405594 | 150 | java |
Ludii | Ludii-master/Mining/src/utils/bgg/Matches.java | package utils.bgg;
import java.util.ArrayList;
import java.util.List;
/**
* Record of matches for user scores.
* @author cambolbro
*/
public class Matches
{
private final BggGame game;
private final List<Double> scores = new ArrayList<Double>();
private double score = 0;
private int numberMatches = 0;
//---... | 1,117 | 14.746479 | 76 | java |
Ludii | Ludii-master/Mining/src/utils/bgg/Rating.java | package utils.bgg;
/**
* Rating of a game by a BGG user.
* @author cambolbro
*/
public class Rating
{
private final BggGame game;
private final User user;
private final byte score;
//private final String stat;
//private final String time;
public Rating(final BggGame game, final User user, final String... | 2,025 | 18.295238 | 80 | java |
Ludii | Ludii-master/Mining/src/utils/bgg/Recommender.java | package utils.bgg;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.swing.JOptionPane;
public class Recommender
{
private final static DecimalFormat df3 = new Dec... | 21,136 | 29.500722 | 169 | java |
Ludii | Ludii-master/Mining/src/utils/bgg/User.java | package utils.bgg;
import java.util.ArrayList;
import java.util.List;
public class User
{
private final String name;
private final List<Rating> ratings = new ArrayList<Rating>();
private double match = 0;
//private BitSet gamesRated = new BitSet();
//------------------------------------------------------------... | 800 | 15.346939 | 76 | java |
Ludii | Ludii-master/Mining/src/utils/concepts/CommonConcepts.java | package utils.concepts;
import static org.junit.Assert.fail;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import game.Game;
import gnu.trove.list.array.TIntArra... | 6,888 | 27.466942 | 153 | java |
Ludii | Ludii-master/Mining/src/utils/concepts/ComputePlayoutConcepts.java | package utils.concepts;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.concurrent.ThreadLocalRandom;
import org.apache.commons.rng.RandomProviderState;
import game.Game;
import game.equipment.contai... | 22,332 | 30.904286 | 193 | java |
Ludii | Ludii-master/Mining/src/utils/concepts/ExportGameConcepts.java | package utils.concepts;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import game.Game;
import ... | 16,871 | 33.787629 | 109 | java |
Ludii | Ludii-master/Mining/src/utils/concepts/db/ExportDbCsvConcepts.java | package utils.concepts.db;
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.text.DecimalFormat;
import ... | 59,992 | 33.24258 | 234 | java |
Ludii | Ludii-master/Mining/src/utils/concepts/script/CreateAachenClusterConceptScript.java | package utils.concepts.script;
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.FileHandling;
import main.StringRoutines;
... | 6,002 | 39.836735 | 234 | java |
Ludii | Ludii-master/Mining/src/utils/concepts/script/CreateSneliusClusterConceptScript.java | package utils.concepts.script;
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.FileHandling;
import main.UnixPrintWriter;... | 8,938 | 40.771028 | 235 | java |
Ludii | Ludii-master/Mining/src/utils/concepts/script/MergeDBResultCSV.java | package utils.concepts.script;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.List;
import java.util.re... | 2,002 | 24.0375 | 119 | java |
Ludii | Ludii-master/Mining/src/utils/concepts/script/MergeEdgesResultCSV.java | package utils.concepts.script;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import java.util.regex.Pattern;
import main.UnixPrintWriter;
/**
* ... | 3,046 | 28.582524 | 119 | java |
Ludii | Ludii-master/Mining/src/utils/features/ExportFeaturesDB.java | package utils.features;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.... | 16,130 | 28.598165 | 133 | java |
Ludii | Ludii-master/Mining/src/utils/heuristics/GenerateBaseHeuristicScoresDatabaseCSVs.java | package utils.heuristics;
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 game.Game;
import... | 12,834 | 29.705742 | 131 | java |
Ludii | Ludii-master/Mining/src/utils/trials/CreateAachenClusterTrialsScript.java | package utils.trials;
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.FileHandling;
import main.StringRoutines;
import ma... | 5,681 | 39.014085 | 239 | java |
Ludii | Ludii-master/Mining/src/utils/trials/CreateDSRIClusterTrialsScript.java | package utils.trials;
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.FileHandling;
import main.StringRoutines;
import ma... | 9,679 | 33.571429 | 128 | java |
Ludii | Ludii-master/Mining/src/utils/trials/CreateSneliusClusterTrialsMuseumFeatures.java | package utils.trials;
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.StringRoutines;
import main.UnixPrintWriter;
import... | 8,407 | 28.093426 | 188 | java |
Ludii | Ludii-master/Mining/src/utils/trials/CreateSneliusClusterTrialsScript.java | package utils.trials;
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.FileHandling;
import main.UnixPrintWriter;
import m... | 5,205 | 33.939597 | 201 | java |
Ludii | Ludii-master/Mining/src/utils/trials/GenerateTrialsCluster.java | package utils.trials;
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.regex.Pattern;
import org.apache.commons.rng.core.RandomProviderDefaultState;
import game.Game;
import main.Constants;
import main.FileHandl... | 11,294 | 25.892857 | 158 | java |
Ludii | Ludii-master/Mining/src/utils/trials/GenerateTrialsClusterParallel.java | package utils.trials;
import static org.junit.Assert.fail;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.ut... | 21,531 | 29.804006 | 163 | java |
Ludii | Ludii-master/Player/src/app/PlayerApp.java | package app;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.event.ActionListener;
import java.awt.event.ItemListener;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;
import j... | 19,083 | 35.419847 | 347 | java |
Ludii | Ludii-master/Player/src/app/move/MouseHandler.java | package app.move;
import java.awt.Point;
import app.PlayerApp;
import app.utils.GUIUtil;
import app.utils.sandbox.SandboxUtil;
import main.Constants;
import other.action.move.ActionSelect;
import other.context.Context;
import other.location.FullLocation;
import other.location.Location;
import other.move.Move;
import ... | 8,960 | 33.598456 | 186 | java |
Ludii | Ludii-master/Player/src/app/move/MoveFormat.java | package app.move;
public enum MoveFormat
{
Full, // Full move format
Move, // Default move format
Short; // Short move format
}
| 137 | 14.333333 | 30 | java |
Ludii | Ludii-master/Player/src/app/move/MoveHandler.java | package app.move;
import java.awt.EventQueue;
import java.util.ArrayList;
import app.PlayerApp;
import app.utils.PuzzleSelectionType;
import game.equipment.component.Component;
import game.rules.play.moves.Moves;
import game.types.board.SiteType;
import game.util.directions.AbsoluteDirection;
import main.Constants;
i... | 21,478 | 31.202399 | 237 | java |
Ludii | Ludii-master/Player/src/app/move/MoveUtil.java | package app.move;
import java.util.ArrayList;
import java.util.List;
import app.PlayerApp;
import game.types.play.ModeType;
import other.action.Action;
import other.context.Context;
import other.move.Move;
public class MoveUtil
{
//-------------------------------------------------------------------------
/**
... | 2,846 | 28.05102 | 137 | java |
Ludii | Ludii-master/Player/src/app/move/MoveVisuals.java | package app.move;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.geom.Point2D;
import java.util.ArrayList;
import java.util.List;
import app.PlayerApp;
import game.Game;
import game.rules.end.EndRule;
import game.rules.end.If;
import game.rules.pla... | 15,171 | 35.825243 | 193 | java |
Ludii | Ludii-master/Player/src/app/move/animation/AnimationParameters.java | package app.move.animation;
import java.awt.Point;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import java.util.List;
/**
* Parameters needed for animating a move.
*
* @author Matthew.Stephenson
*/
public class AnimationParameters
{
public final AnimationType animationType;
public final L... | 1,063 | 26.282051 | 195 | java |
Ludii | Ludii-master/Player/src/app/move/animation/AnimationType.java | package app.move.animation;
/**
* Different types of animation.
*
* @author Matthew.Stephenson
*/
public enum AnimationType
{
// No animation.
NONE,
// Move between two locations.
DRAG,
// Pulse at a specified location.
PULSE
}
| 245 | 11.947368 | 34 | java |
Ludii | Ludii-master/Player/src/app/move/animation/MoveAnimation.java | package app.move.animation;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.geom.Point2D;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import app.PlayerApp;
import app.utils.BufferedImageUtil;
import app.... | 18,438 | 38.48394 | 521 | java |
Ludii | Ludii-master/Player/src/app/utils/AIPlayer.java | package app.utils;
import java.util.ArrayList;
import java.util.List;
import app.PlayerApp;
import game.Game;
import main.grammar.Report;
import metrics.Evaluation;
import metrics.Metric;
import supplementary.experiments.EvalGamesThread;
/**
* Utility to load AI players and launch the Evaluation dialog for the desk... | 1,648 | 31.98 | 265 | java |
Ludii | Ludii-master/Player/src/app/utils/AnimationVisualsType.java | package app.utils;
/**
* Different ways that moves can be animated
*
* @author Matthew.Stephenson
*/
public enum AnimationVisualsType
{
None, // No piece animation.
Single, // Single action animation.
All; // All action animation.
//--------------------------------------------------------------------... | 809 | 24.3125 | 93 | java |
Ludii | Ludii-master/Player/src/app/utils/BufferedImageUtil.java | package app.utils;
import java.awt.AlphaComposite;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Image;
import java.awt.Point;
import java.awt.RenderingHints;
import java.awt.geom.AffineTransform;
import java.awt.image.BufferedImage;
import java.awt.image.ColorModel;
import java.awt.image.Writable... | 8,941 | 29.209459 | 137 | java |
Ludii | Ludii-master/Player/src/app/utils/ContextSnapshot.java | package app.utils;
import app.PlayerApp;
import other.context.Context;
import other.context.InformationContext;
/**
* A snapshot of the last recorded context.
* Updated and frozen whenever painting to avoid threading issues.
*
* @author Matthew.Stephenson
*/
public class ContextSnapshot
{
private Context cop... | 2,009 | 22.103448 | 119 | java |
Ludii | Ludii-master/Player/src/app/utils/DrawnImageInfo.java | package app.utils;
import java.awt.image.BufferedImage;
import util.ImageInfo;
/**
* Object that links a drawn bufferedImage to other useful information about it.
*
* @author Matthew Stephenson
*/
public class DrawnImageInfo
{
private final BufferedImage pieceImage;
private final ImageInfo imageInfo;
//-... | 828 | 19.219512 | 81 | java |
Ludii | Ludii-master/Player/src/app/utils/EnglishSwedishTranslations.java | package app.utils;
public enum EnglishSwedishTranslations
{
// Menu Text
MYOGTITLE("Make Your Own Game", "Gor Ditt Eget Spel"), //"Gör Ditt Eget Spel"),
INTRO_A("Ludemes are the elements that make up games.", "Spel består av beståndsdelar som kallas ludemes."),
INTRO_B("Here you can mix and match ludemes to ma... | 2,385 | 25.21978 | 133 | java |
Ludii | Ludii-master/Player/src/app/utils/GUIUtil.java | package app.utils;
import java.awt.Point;
import java.awt.Rectangle;
import java.util.List;
import app.views.View;
/**
* Utility functions for the GUI.
*
* @author Matthew Stephenson
*/
public class GUIUtil
{
//-------------------------------------------------------------------------
/**
* Checks if po... | 1,528 | 18.857143 | 94 | java |
Ludii | Ludii-master/Player/src/app/utils/GameSetup.java | package app.utils;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Pattern;
import org.apache.commons.rng.core.RandomProviderDefaultState;
import app.PlayerApp;
import compiler.Compiler;
import game.Game;
import main.Constants;
import main.grammar.Description;
import main.grammar.Report;
im... | 6,200 | 33.071429 | 220 | java |
Ludii | Ludii-master/Player/src/app/utils/GameUtil.java | package app.utils;
import java.awt.EventQueue;
import java.util.ArrayList;
import java.util.List;
import app.PlayerApp;
import app.move.MoveHandler;
import app.move.animation.MoveAnimation;
import compiler.Compiler;
import game.Game;
import game.equipment.container.Container;
import game.types.board.SiteType;
import ... | 8,891 | 31.452555 | 133 | java |
Ludii | Ludii-master/Player/src/app/utils/GenerateAliasesFile.java | package app.utils;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.P... | 4,589 | 26.987805 | 106 | java |
Ludii | Ludii-master/Player/src/app/utils/GraphicsCache.java | package app.utils;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import org.jfree.graphics2d.svg.SVGGraphics2D;
import bridge.Bridge;
import game.equipment.component.Component;
import game.equipment.container.other.Dice;
import game.rules.play.mov... | 16,356 | 35.268293 | 258 | java |
Ludii | Ludii-master/Player/src/app/utils/MVCSetup.java | package app.utils;
import app.PlayerApp;
import bridge.ViewControllerFactory;
import game.equipment.component.Component;
import game.equipment.container.Container;
import metadata.Metadata;
import other.context.Context;
/**
* Functions for setting up the Model-View-Controller within the Bridge.
*
* @author Matthe... | 1,948 | 31.483333 | 123 | java |
Ludii | Ludii-master/Player/src/app/utils/PuzzleSelectionType.java | package app.utils;
/**
* Different ways that values can be selected for deduction puzzles.
*
* @author Matthew.Stephenson
*/
public enum PuzzleSelectionType
{
Automatic, // Pick from the others based on the # possible values.
Dialog, // Show a dialog with all possible values.
Cycle; // Cycle through to t... | 903 | 27.25 | 90 | java |
Ludii | Ludii-master/Player/src/app/utils/QrCodeGeneration.java | package app.utils;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import game.Game;
import graphics.qr_codes.QrCode;
import graphics.qr_codes.ToImage;
import main.DatabaseInformation;
/**
* QR code generation functions.
*
* @author cambolbro a... | 4,489 | 27.967742 | 112 | java |
Ludii | Ludii-master/Player/src/app/utils/RemoteDialogFunctionsPublic.java | package app.utils;
import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
import app.PlayerApp;
import manager.Manager;
/**
* Public class for calling remote dialog functions.
* Fake function calls. Remote dialog functionality is not available in the source... | 2,766 | 26.39604 | 130 | java |
Ludii | Ludii-master/Player/src/app/utils/ReportMessengerGUI.java | package app.utils;
import java.awt.EventQueue;
import app.PlayerApp;
import main.grammar.Report.ReportMessenger;
/**
* Report Messenger implementation for the GUI.
*
* @author Matthew.Stephenson
*/
public class ReportMessengerGUI implements ReportMessenger
{
private final PlayerApp app;
//----------------... | 1,157 | 16.815385 | 76 | java |
Ludii | Ludii-master/Player/src/app/utils/SVGUtil.java | package app.utils;
import java.awt.RenderingHints;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;
import org.apache.batik.gvt.renderer.ImageRenderer;
import org.apache.batik.transcoder.SVGAbstractTranscoder;
import org.ap... | 4,181 | 38.45283 | 115 | java |
Ludii | Ludii-master/Player/src/app/utils/SettingsExhibition.java | package app.utils;
/**
* Exhibition (in-depth) application settings
*
* @author Matthew.Stephenson
*/
public class SettingsExhibition
{
/** If the app should be loaded in the exhibition display
* format. */
public static final boolean exhibitionVersion = false;
/** The resolution of the app (some aspects ... | 3,662 | 68.113208 | 110 | java |
Ludii | Ludii-master/Player/src/app/utils/SettingsPlayer.java | package app.utils;
import java.awt.Point;
import java.awt.Rectangle;
import java.util.ArrayList;
import java.util.List;
import java.util.Timer;
import app.move.MoveFormat;
import app.move.animation.AnimationParameters;
import app.move.animation.MoveAnimation;
import game.equipment.component.Component;
import other.mo... | 17,783 | 20.272727 | 131 | java |
Ludii | Ludii-master/Player/src/app/utils/Sound.java | package app.utils;
import java.io.BufferedInputStream;
import java.io.InputStream;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.Clip;
import javax.sound.sampled.LineEvent;
import javax.sound.sampled.LineListener;
/**
* Functions relating to the play... | 2,766 | 26.949495 | 127 | java |
Ludii | Ludii-master/Player/src/app/utils/Spinner.java | package app.utils;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.geom.Arc2D;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.util.ArrayList;
import java.util.List;
impor... | 3,325 | 22.757143 | 120 | java |
Ludii | Ludii-master/Player/src/app/utils/TrialUtil.java | package app.utils;
import java.util.List;
import manager.Manager;
import other.context.Context;
import other.move.Move;
/**
* Functions to help with Trials.
*
* @author Matthew.Stephenson
*/
public class TrialUtil
{
//-------------------------------------------------------------------------
/**
* Retu... | 1,555 | 25.827586 | 133 | java |
Ludii | Ludii-master/Player/src/app/utils/UpdateTabMessages.java | package app.utils;
import app.PlayerApp;
import game.Game;
import game.equipment.component.Component;
import game.functions.booleans.is.component.IsThreatened;
import game.functions.ints.IntConstant;
import other.action.Action;
import other.context.Context;
import other.move.Move;
import other.topology.TopologyElement... | 5,686 | 28.015306 | 109 | java |
Ludii | Ludii-master/Player/src/app/utils/sandbox/SandboxUtil.java | package app.utils.sandbox;
import java.awt.EventQueue;
import app.PlayerApp;
import game.equipment.component.Component;
import game.rules.play.moves.BaseMoves;
import game.rules.play.moves.Moves;
import game.types.board.SiteType;
import main.Constants;
import other.action.Action;
import other.action.move.ActionAdd;
i... | 8,551 | 33.345382 | 300 | java |
Ludii | Ludii-master/Player/src/app/utils/sandbox/SandboxValueType.java | package app.utils.sandbox;
/**
* All the types of values that can be altered by the Sandbox dialog.
*
* @author Matthew.Stephenson
*/
public enum SandboxValueType
{
Component,
LocalState,
Value,
Count,
Rotation;
}
| 225 | 13.125 | 69 | java |
Ludii | Ludii-master/Player/src/app/views/BoardView.java | package app.views;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import app.PlayerApp;
import app.move.MoveVisuals;
import app.utils.SettingsExhibition;
import other.context.Context;
import util.PlaneType;
//------------------------------------------------... | 4,525 | 34.359375 | 146 | java |
Ludii | Ludii-master/Player/src/app/views/View.java | package app.views;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Point;
import java.awt.Rectangle;
import app.PlayerApp;
//-----------------------------------------------------------------------------
/**
* Abstract View concept for defining different sections of t... | 2,035 | 19.77551 | 85 | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.