file_name stringlengths 6 86 | file_path stringlengths 45 249 | content stringlengths 47 6.26M | file_size int64 47 6.26M | language stringclasses 1
value | extension stringclasses 1
value | repo_name stringclasses 767
values | repo_stars int64 8 14.4k | repo_forks int64 0 1.17k | repo_open_issues int64 0 788 | repo_created_at stringclasses 767
values | repo_pushed_at stringclasses 767
values |
|---|---|---|---|---|---|---|---|---|---|---|---|
SensorsTest.java | /FileExtraction/Java_unseen/glpi-project_android-inventory-library/inventory/src/androidTest/java/org/flyve/inventory/SensorsTest.java | /**
* LICENSE
*
* This file is part of Flyve MDM Inventory Library for Android.
*
* Inventory Library for Android is a subproject of Flyve MDM.
* Flyve MDM is a mobile device management software.
*
* Flyve MDM is free software: you can redistribute it and/or
* modify it under the terms of the GNU Genera... | 3,488 | Java | .java | glpi-project/android-inventory-library | 16 | 22 | 2 | 2017-06-19T07:14:12Z | 2024-03-14T17:22:46Z |
ExampleUnitTest.java | /FileExtraction/Java_unseen/glpi-project_android-inventory-library/example_java/src/test/java/org/flyve/example_java/ExampleUnitTest.java | /**
* LICENSE
*
* This file is part of Flyve MDM Inventory Library for Android.
*
* Inventory Library for Android is a subproject of Flyve MDM.
* Flyve MDM is a mobile device management software.
*
* Flyve MDM is free software: you can redistribute it and/or
* modify it under the terms of the GNU Genera... | 1,556 | Java | .java | glpi-project/android-inventory-library | 16 | 22 | 2 | 2017-06-19T07:14:12Z | 2024-03-14T17:22:46Z |
MainActivity.java | /FileExtraction/Java_unseen/glpi-project_android-inventory-library/example_java/src/main/java/org/flyve/example_java/MainActivity.java | /**
* LICENSE
*
* This file is part of Flyve MDM Inventory Library for Android.
*
* Inventory Library for Android is a subproject of Flyve MDM.
* Flyve MDM is a mobile device management software.
*
* Flyve MDM is free software: you can redistribute it and/or
* modify it under the terms of the GNU Genera... | 9,383 | Java | .java | glpi-project/android-inventory-library | 16 | 22 | 2 | 2017-06-19T07:14:12Z | 2024-03-14T17:22:46Z |
ExampleInstrumentedTest.java | /FileExtraction/Java_unseen/glpi-project_android-inventory-library/example_java/src/androidTest/java/org/flyve/example_java/ExampleInstrumentedTest.java | /**
* LICENSE
*
* This file is part of Flyve MDM Inventory Library for Android.
*
* Inventory Library for Android is a subproject of Flyve MDM.
* Flyve MDM is a mobile device management software.
*
* Flyve MDM is free software: you can redistribute it and/or
* modify it under the terms of the GNU Genera... | 1,888 | Java | .java | glpi-project/android-inventory-library | 16 | 22 | 2 | 2017-06-19T07:14:12Z | 2024-03-14T17:22:46Z |
ActivityMain.java | /FileExtraction/Java_unseen/shivam141296_Android-Firewall/app/src/main/java/com/example/firewallminor/ActivityMain.java | package com.example.firewallminor;
import android.app.AlertDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.net.Connectiv... | 12,799 | Java | .java | shivam141296/Android-Firewall | 44 | 16 | 1 | 2017-11-30T17:20:10Z | 2018-12-13T06:32:12Z |
RuleAdapter.java | /FileExtraction/Java_unseen/shivam141296_Android-Firewall/app/src/main/java/com/example/firewallminor/RuleAdapter.java | package com.example.firewallminor;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.support.v4.content.ContextCompat;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view... | 5,585 | Java | .java | shivam141296/Android-Firewall | 44 | 16 | 1 | 2017-11-30T17:20:10Z | 2018-12-13T06:32:12Z |
BlackHoleService.java | /FileExtraction/Java_unseen/shivam141296_Android-Firewall/app/src/main/java/com/example/firewallminor/BlackHoleService.java | package com.example.firewallminor;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.net.Conne... | 6,996 | Java | .java | shivam141296/Android-Firewall | 44 | 16 | 1 | 2017-11-30T17:20:10Z | 2018-12-13T06:32:12Z |
Receiver.java | /FileExtraction/Java_unseen/shivam141296_Android-Firewall/app/src/main/java/com/example/firewallminor/Receiver.java | package com.example.firewallminor;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.VpnService;
import android.util.Log;
public class Receiver extends BroadcastReceiver {
private static final String TAG = "NetGuard.Receiver";
@Overrid... | 594 | Java | .java | shivam141296/Android-Firewall | 44 | 16 | 1 | 2017-11-30T17:20:10Z | 2018-12-13T06:32:12Z |
Rule.java | /FileExtraction/Java_unseen/shivam141296_Android-Firewall/app/src/main/java/com/example/firewallminor/Rule.java | package com.example.firewallminor;
import android.content.Context;
import android.content.SharedPreferences;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.graphics.drawable.Drawable;
import android.preference.PreferenceManager... | 2,853 | Java | .java | shivam141296/Android-Firewall | 44 | 16 | 1 | 2017-11-30T17:20:10Z | 2018-12-13T06:32:12Z |
Util.java | /FileExtraction/Java_unseen/shivam141296_Android-Firewall/app/src/main/java/com/example/firewallminor/Util.java | package com.example.firewallminor;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.os.Handler;
import android.... | 1,879 | Java | .java | shivam141296/Android-Firewall | 44 | 16 | 1 | 2017-11-30T17:20:10Z | 2018-12-13T06:32:12Z |
SuperCCTest.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/test/java/emulator/SuperCCTest.java | package emulator;
import game.Level;
import game.Tile;
import org.junit.jupiter.api.Test;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.util.Arrays;
import static java.nio.charset.StandardCharsets.UTF_8;
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
cla... | 6,348 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
TSPSolverTest.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/test/java/tools/tsp/TSPSolverTest.java | package tools.tsp;
import emulator.SuperCC;
import game.Tile;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import tools.TSPGUI;
import javax.swing.*;
import java.io.File;
import java.util.ArrayList;
import static org.junit.jupiter.api.Assertions.*;
class TSPSolverTest {
private fi... | 21,910 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
TokenizerTest.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/test/java/tools/variation/TokenizerTest.java | package tools.variation;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import static org.junit.jupiter.api.Assertions.*;
class TokenizerTest {
private final Token SPACE = new Token(TokenType.SPACE, " ", null, 1);
@Te... | 11,977 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
MovePoolTest.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/test/java/tools/variation/MovePoolTest.java | package tools.variation;
import org.junit.jupiter.api.Test;
import java.util.HashMap;
import static org.junit.jupiter.api.Assertions.*;
class MovePoolTest {
@Test
void addSingleMove() {
MovePool movePool = new MovePool();
movePool.add(new Move("4ud"));
HashMap<String, Integer> moves... | 1,673 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
ParserTest.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/test/java/tools/variation/ParserTest.java | package tools.variation;
import game.Tile;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static org.junit.jupiter.api.Assertions.*;
class ParserTest {
@Test
void parseBlockStatement() {
String code = "{1; 2;}";
Parser pa... | 17,727 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
PermutationTest.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/test/java/tools/variation/PermutationTest.java | package tools.variation;
import org.junit.jupiter.api.Test;
import util.CharList;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
import static org.junit.jupiter.api.Assertions.assertEqua... | 11,710 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
MultisetTest.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/test/java/tools/variation/MultisetTest.java | package tools.variation;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import static org.junit.jupiter.api.Assertions.*;
class MultisetTest {
@Test
void initialSubset() {
MovePoolContainer movePools ... | 7,511 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
InterpreterTest.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/test/java/tools/variation/InterpreterTest.java | package tools.variation;
import emulator.SuperCC;
import emulator.TickFlags;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import tools.VariationTesting;
import javax.swing.*;
import java.io.File;
import static org.junit.jupiter.api.Assertions.*;
class InterpreterTest {
private fin... | 20,642 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
SavestateReader.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/SavestateReader.java | package game;
import game.Lynx.LynxCreature;
import game.MS.MSCreature;
import java.io.ByteArrayInputStream;
public class SavestateReader extends ByteArrayInputStream {
public int readUnsignedByte(){
return read() & 0xFF;
}
public int readShort(){
int n = readUnsignedByte() << 8;
... | 2,453 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
Ruleset.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/Ruleset.java | package game;
public enum Ruleset { //For the love of god do not use this outside of solution/JSONs,
// and only use level.getTicksPerMove unless its in Solution
CURRENT(0),
MS(2),
LYNX(4);
public final int ticksPerMove;
public static final Ruleset[] PLAYABLES = new Ruleset[] {MS, LYNX};
... | 706 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
Position.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/Position.java | package game;
import emulator.SuperCC;
import static game.Direction.*;
import static java.lang.Math.abs;
public class Position {
private static final int
MOVE_DOWN = 0b100000,
MOVE_UP = -0b100000,
MOVE_RIGHT = 0b000001,
MOVE_LEFT = -0b000001;
public static fin... | 4,571 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
SavestateWriter.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/SavestateWriter.java | package game;
import java.util.List;
public class SavestateWriter {
private final byte[] bytes;
private int index;
public void write(int n) {
bytes[index] = (byte) n;
index++;
}
public void write(byte[] b) {
System.arraycopy(b, 0, bytes, index, b.length);
index +=... | 1,624 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
Direction.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/Direction.java | package game;
public enum Direction {
UP(0b0000),
LEFT(0b0001),
DOWN(0b0010),
RIGHT(0b0011),
UP_LEFT(0b0100),
DOWN_LEFT(0b0101),
DOWN_RIGHT(0b0110),
UP_RIGHT(0b0111),
NONE(0b1000),
WALKER_TURN(0b1001), //WOW! This is extremely hacky!
BLOB_TURN(0b1010);
public stati... | 2,836 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
Cheats.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/Cheats.java | package game;
import game.MS.MSCreatureList;
import game.button.*;
import util.MultiHashMap;
import java.util.HashMap;
import java.util.Map;
public class Cheats {
private final Level level;
// Button related cheats
public void pressGreenButton() {
new GreenButton(null).press(level)... | 5,540 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
ByteLayer.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/ByteLayer.java | package game;
import java.util.Iterator;
import java.util.function.Consumer;
public class ByteLayer implements Layer {
private final byte[] layer;
public Tile get(int i){
return Tile.fromOrdinal(layer[i]);
}
public Tile get(Position p){
if (!p.isValid()) return Tile.WALL... | 1,631 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
Layer.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/Layer.java | package game;
/**
*
*
* Benchmarks:
*
* Time taken to run pain, without writing savesates:
* ByteLayer: 12.42920485ms
* TileLayer: 12.07655951ms
*
* Time taken to run pain, with writing savesates:
* ByteLayer: 20.73663555ms
* TileLayer: 26.42774384ms
*
*/
public interface Layer extends Iterable<Tile> {
... | 591 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
Level.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/Level.java | package game;
import game.MS.*;
import game.button.*;
import util.MultiHashMap;
import java.util.BitSet;
import java.util.Map;
public interface Level extends Savestate {
int MASK_TICK_MULTI = 0b01;
int MASK_DISCARD_INPUT = 0b10;
int getLevelNumber();
int getStartTime();
String getTitle();... | 4,895 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
Creature.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/Creature.java | package game;
import static game.CreatureID.DEAD;
public abstract class Creature {
protected Level level;
protected Position position;
protected CreatureID creatureType;
protected Direction direction;
protected Direction tDirection = Direction.NONE;
protected Direction fDirection = Direction.N... | 5,620 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
CreatureList.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/CreatureList.java | package game;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Spliterator;
import java.util.function.Consumer;
/**
* The monster list. The list attribute is the actual list.
*/
public abstract class CreatureList implements Iterable<Creature> {
public Direction dire... | 4,259 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
Tile.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/Tile.java | package game;
public enum Tile {
/* 00 EMPTY SPACE */ FLOOR("Floor"),
/* 01 WALL */ WALL("Wall"),
/* 02 CHIP */ CHIP("Chip"),
/* 03 WATER */ WATER("Water"),
/* 04 FIRE */ FIRE("Fire"),
/* 05 INVISIBLE WALL_P... | 9,687 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
CreatureID.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/CreatureID.java | package game;
public enum CreatureID {
BUG (0b00_0000_0000000000, "Bug"),
FIREBALL (0b00_0001_0000000000, "Fireball"),
PINK_BALL (0b00_0010_0000000000, "Ball"),
TANK_MOVING (0b00_0011_0000000000, "Tank (Moving)"),
GLIDER (0b00_0100_0000000000, "Glider"),
... | 1,875 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
RNG.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/RNG.java | package game;
public class RNG{
public static final int LAST_SEED = 0x7FFFFFFF;
private int currentValue, prngValue1, prngValue2;
private int nextValue(){
return currentValue = (currentValue * 1103515245 + 12345) & 0x7FFFFFFF;
}
public void setCurrentValue(int value){
currentV... | 2,968 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
Step.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/Step.java | package game;
public enum Step{
EVEN,
EVEN1,
EVEN2,
EVEN3,
ODD,
ODD1,
ODD2,
ODD3;
public static Step fromTWS(int n) {
n &= 0b11111000;
n >>>= 3;
return values()[n];
}
public Step next() {
return values()[(ordinal() + 1) % values().lengt... | 698 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
Savestate.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/Savestate.java | package game;
import game.Lynx.LynxCreature;
import game.MS.MSCreature;
public interface Savestate {
int NO_CLICK = 1025;
int RLE_MULTIPLE = 0x7F;
int RLE_END = 0x7E;
byte UNCOMPRESSED_V2 = 6;
byte UNCOMPRESSED_V1 = 4;
byte COMPRESSED_V2 = 7;
byte COMPRESSED_V1 = 5;
/**
* Get chi... | 1,222 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
LynxCreatureList.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/Lynx/LynxCreatureList.java | package game.Lynx;
import game.*;
import game.button.BrownButton;
import static game.CreatureID.*;
public class LynxCreatureList extends CreatureList {
private boolean[] creatureLayer;
private int phase;
@Override
public void setCreatures(Creature[] creatures) {
list = creatures;
cre... | 9,771 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
LynxLevel.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/Lynx/LynxLevel.java | package game.Lynx;
import game.*;
import game.Cheats;
import game.MS.SlipList;
import game.button.*;
import util.MultiHashMap;
import java.util.List;
import java.util.Map;
import static game.Direction.*;
public class LynxLevel extends LynxSavestate implements Level {
private static final int HALF_WAIT = 0, KEY... | 14,940 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
LynxSavestate.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/Lynx/LynxSavestate.java | package game.Lynx;
import game.*;
public class LynxSavestate implements Savestate {
private static final byte UNCOMPRESSED_V2 = 6;
private static final byte UNCOMPRESSED_V1 = 4;
public Layer layerFG;
public Creature chip;
public int tickNumber;
public int chipsLeft;
public short[] keys;
... | 3,643 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
LynxCreature.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/Lynx/LynxCreature.java | package game.Lynx;
import game.*;
import game.button.Button;
import java.util.Objects;
import static game.CreatureID.*;
import static game.Direction.*;
import static game.Direction.TURN_AROUND;
import static game.Tile.*;
/**
* Lynx creatures are encoded as follows:
*
* 0 | 0 | 0 | 0 0 0 0 ... | 24,025 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
MSSavestate.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/MS/MSSavestate.java | package game.MS;
import game.*;
import java.io.IOException;
import java.util.BitSet;
public class MSSavestate implements Savestate {
public Layer layerBG;
public Layer layerFG;
public MSCreature chip;
public int tickNumber;
public int chipsLeft;
public short[] keys;
public byte[] boots;
... | 4,841 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
MSCreatureList.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/MS/MSCreatureList.java | package game.MS;
import game.*;
import static game.CreatureID.*;
import static game.Tile.*;
public class MSCreatureList extends game.CreatureList {
private int numDeadMonsters;
@Override
public void initialise() {
newClones.clear();
numDeadMonsters = 0;
chipToCr = null;
t... | 7,942 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
MSCreature.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/MS/MSCreature.java | package game.MS;
import game.*;
import game.button.*;
import java.util.LinkedList;
import java.util.List;
import java.util.Objects;
import static game.CreatureID.BLOCK;
import static game.CreatureID.*;
import static game.CreatureID.CHIP;
import static game.Direction.*;
import static game.Tile.*;
/**
* MS Creatures... | 43,538 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
MSLevel.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/MS/MSLevel.java | package game.MS;
import emulator.SuperCC;
import game.*;
import game.button.*;
import util.MultiHashMap;
import java.util.*;
import static emulator.SuperCC.WAIT;
import static emulator.SuperCC.UP;
import static emulator.SuperCC.DOWN;
import static emulator.SuperCC.LEFT;
import static emulator.SuperCC.RIGHT;
import s... | 25,219 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
SlipList.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/MS/SlipList.java | package game.MS;
import game.Creature;
import game.Level;
import java.util.ArrayList;
public class SlipList extends ArrayList<Creature> { //This should only ever be used for MS
protected Level level;
public void tick(){
// Iterating like this causes slide delay.
for (int i = size(); i > 0; i... | 1,401 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
BrownButton.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/button/BrownButton.java | package game.button;
import game.Level;
import game.Position;
public class BrownButton extends ConnectionButton {
@Override
public void press(Level level) {
level.setTrap(targetPosition, true);
}
public boolean isOpen(Level level) {
return level.isTrapOpen(targetPosition);
}
... | 551 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
Button.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/button/Button.java | package game.button;
import game.Level;
import game.Position;
public abstract class Button {
private final Position buttonLocation;
public Position getButtonPosition() {
return buttonLocation;
}
public abstract void press(Level level);
public Button(Position buttonLocat... | 386 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
GreenButton.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/button/GreenButton.java | package game.button;
import game.Level;
import game.Position;
import static game.Tile.TOGGLE_CLOSED;
import static game.Tile.TOGGLE_OPEN;
public class GreenButton extends Button{
@Override
public void press(Level level) {
for (Position p : level.getToggleDoors()) {
if (level.getLayer... | 953 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
BlueButton.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/button/BlueButton.java | package game.button;
import game.Creature;
import game.Level;
import game.Position;
import static game.CreatureID.TANK_MOVING;
import static game.Direction.TURN_AROUND;
public class BlueButton extends Button {
@Override
public void press(Level level) {
level.turnTanks();
}
public Bl... | 400 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
ConnectionButton.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/button/ConnectionButton.java | package game.button;
import game.Position;
public abstract class ConnectionButton extends Button {
final Position targetPosition;
public Position getTargetPosition() {
return targetPosition;
}
public ConnectionButton(Position buttonPosition, Position targetPosition) {
super(... | 396 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
RedButton.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/game/button/RedButton.java | package game.button;
import game.Level;
import game.Position;
public class RedButton extends ConnectionButton {
@Override
public void press(Level level) {
level.getMonsterList().addClone(targetPosition);
}
public RedButton(Position buttonPosition, Position clonerPosition) {
s... | 371 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
SavestateCompressor.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/emulator/SavestateCompressor.java | package emulator;
import util.ByteList;
import util.TreeNode;
import java.util.Stack;
import static game.Savestate.*;
public class SavestateCompressor implements Runnable{
private static final int LAYER_BG_LOCATION = 3,
LAYER_FG_LOCATION = LAYER_BG_LOCATION + 32 * 32,
LAYER_FG_END = LAY... | 3,064 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
SavestateManager.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/emulator/SavestateManager.java | package emulator;
import game.Level;
import game.Position;
import game.Savestate;
import graphics.Gui;
import graphics.SmallGamePanel;
import util.CharList;
import util.TreeNode;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.io.Serial;
import java.io.Serializable;
import java.io.Unsuppo... | 12,599 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
SuperCC.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/emulator/SuperCC.java | package emulator;
import game.*;
import graphics.Gui;
import graphics.SmallGamePanel;
import graphics.TileSheet;
import io.DatParser;
import io.SuccPaths;
import io.TWSReader;
import tools.SeedSearch;
import tools.TSPGUI;
import tools.VariationTesting;
import javax.swing.*;
import java.awt.*;
import java.awt.image.Bu... | 15,399 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
EmulatorKeyListener.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/emulator/EmulatorKeyListener.java | package emulator;
import io.SuccPaths;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.util.*;
public class EmulatorKeyListener extends KeyAdapter {
private final SuperCC emulator;
public enum Key {
UP(SuperCC.UP),
LEFT(SuperCC.LEFT),
DOWN(Super... | 6,534 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
Solution.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/emulator/Solution.java | package emulator;
import game.*;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
import util.CharList;
import java.io.CharArrayWriter;
import java.util.Arrays;
import java.util.Collections;
import java.util.Set;
import java.util.HashSet;
impo... | 9,940 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
ArgumentParser.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/emulator/ArgumentParser.java | package emulator;
import game.Direction;
import game.Ruleset;
import game.Step;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
final class ArgumentParser {
private final static String helpLong = "--help", helpShort = "-h", helpQuest... | 7,414 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
TickFlags.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/emulator/TickFlags.java | package emulator;
public enum TickFlags {
GAME_PLAY(true, true, true),
REPLAY(true, false, false),
LIGHT(false, false, true),
PRELOADING(false, true, true);
public final boolean repaint;
public final boolean save;
public final boolean multiTick;
TickFlags(boolean repaint,... | 463 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
TWSWriter.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/io/TWSWriter.java | package io;
import emulator.SavestateManager;
import emulator.Solution;
import emulator.SuperCC;
import game.Direction;
import game.Level;
import game.Position;
import game.Ruleset;
import util.CharList;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.Arrays;
import java.util.ListIt... | 8,984 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
TWSReader.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/io/TWSReader.java | package io;
import emulator.Solution;
import game.Direction;
import game.Level;
import game.Ruleset;
import game.Step;
import java.io.*;
import java.util.Set;
import static emulator.SuperCC.*;
public class TWSReader{
private int headerLength;
private Ruleset ruleset;
private final File twsFile;
p... | 9,505 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
DatParser.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/io/DatParser.java | package io;
import game.Direction;
import game.Level;
import game.Ruleset;
import game.Step;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
/**
* A class for reading the .dat format.
* For documentation on th... | 9,450 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
SuccPaths.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/io/SuccPaths.java | package io;
import java.awt.event.KeyEvent;
import java.io.*;
import java.nio.charset.StandardCharsets;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class SuccPaths {
private final File settingsFile;
private... | 10,440 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
LevelFactory.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/io/LevelFactory.java | package io;
import game.*;
import game.Lynx.LynxCreature;
import game.Lynx.LynxCreatureList;
import game.Lynx.LynxLevel;
import game.MS.*;
import game.button.BlueButton;
import game.button.BrownButton;
import game.button.GreenButton;
import game.button.RedButton;
import util.MultiHashMap;
import java.util.*;
/**
* ... | 11,187 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
GifSequenceWriter.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/GifSequenceWriter.java | //
// GifSequenceWriter.java
//
// Created by Elliot Kroo on 2009-04-25.
//
// This work is licensed under the Creative Commons Attribution 3.0 Unported
// License. To view a copy of this license, visit
// http://creativecommons.org/licenses/by/3.0/ or send a letter to Creative
// Commons, 171 Second Street, Suite ... | 7,026 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
VariationResult.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/VariationResult.java | package tools;
import emulator.Solution;
import emulator.SuperCC;
import emulator.TickFlags;
import javax.swing.*;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
import java.awt.*;
import java.awt.datatransfer.StringSelection;
import java.util.ArrayList;
public class VariationResult {
... | 2,518 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
ChooseTileSize.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/ChooseTileSize.java | package tools;
import emulator.SuperCC;
import graphics.Gui;
import graphics.SmallGamePanel;
import graphics.TileSheet;
import javax.swing.*;
import java.awt.*;
import java.awt.event.WindowEvent;
import java.io.IOException;
public class ChooseTileSize {
private JPanel panel1;
private JSpinner heightSpinner;
... | 2,543 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
VerifyTWS.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/VerifyTWS.java | package tools;
import emulator.Solution;
import emulator.SuperCC;
import javax.swing.*;
import javax.swing.border.BevelBorder;
import java.util.ArrayList;
public class VerifyTWS {
private JPanel mainPanel;
private JList list1;
private JList list2;
private JTable table1;
public VerifyTWS(Supe... | 1,679 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
VariationTesting.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/VariationTesting.java | package tools;
import emulator.SuperCC;
import tools.variation.*;
import javax.swing.*;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
import javax.swing.text.BadLocationException;
import javax.swing.text.Style;
import javax.swing.text.StyleConstants;
import javax.swing.text.Styled... | 13,113 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
TSPHelpWindow.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/TSPHelpWindow.java | package tools;
import emulator.SuperCC;
import javax.swing.*;
public class TSPHelpWindow {
private JPanel mainPanel;
private JTextPane mainText;
public TSPHelpWindow(SuperCC emulator) {
JFrame frame = new JFrame("Help");
frame.setContentPane(mainPanel);
frame.pack();
fram... | 411 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
MonsterlistRearrangeGUI.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/MonsterlistRearrangeGUI.java | package tools;
import emulator.SuperCC;
import game.Creature;
import game.Level;
import javax.swing.*;
import java.awt.event.*;
public class MonsterlistRearrangeGUI {
private JPanel mainPanel;
private JList<Creature> guiList;
private DefaultListModel<Creature> listModel = new DefaultListModel<>();
pr... | 2,773 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
ChooseWindowSize.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/ChooseWindowSize.java | package tools;
import emulator.SuperCC;
import graphics.Gui;
import graphics.SmallGamePanel;
import javax.swing.*;
import java.awt.*;
import java.awt.event.WindowEvent;
public class ChooseWindowSize {
private JPanel panel1;
private JButton okButton;
private JSpinner heightSpinner;
private JSpinner wi... | 1,863 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
SeedSearch.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/SeedSearch.java | package tools;
import emulator.Solution;
import emulator.SuperCC;
import emulator.TickFlags;
import game.Position;
import game.Ruleset;
import javax.swing.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.io.File;
import java.text.DecimalFormat;
import java.util.concurrent.atomic... | 9,182 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
ControlGUI.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/ControlGUI.java | package tools;
import emulator.EmulatorKeyListener;
import emulator.SuperCC;
import io.SuccPaths;
import javax.swing.*;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
public class ControlGUI {
private JPanel mainPanel... | 4,604 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
HelpWindow.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/HelpWindow.java | package tools;
import emulator.SuperCC;
import javax.swing.*;
public class HelpWindow {
private JPanel mainPanel;
private JTextPane mainText;
public HelpWindow(SuperCC emulator) {
JFrame frame = new JFrame("Help/About");
frame.setContentPane(mainPanel);
frame.pack();
fram... | 411 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
GameGifRecorder.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/GameGifRecorder.java | package tools;
import emulator.SavestateManager;
import emulator.SuperCC;
import graphics.Gui;
import javax.imageio.stream.FileImageOutputStream;
import javax.imageio.stream.ImageOutputStream;
import javax.swing.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.... | 3,460 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
ChangeInventory.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/ChangeInventory.java | package tools;
import emulator.SuperCC;
import javax.swing.*;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
public class ChangeInventory extends JPanel {
private JPanel mainPanel;
private JPanel boots2;
private JPanel keys;
private JTextField textBlue;
private JTextFiel... | 3,246 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
TSPGUI.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/TSPGUI.java | package tools;
import emulator.SuperCC;
import game.Position;
import game.Tile;
import tools.tsp.ActingWallParameters;
import tools.tsp.SimulatedAnnealingParameters;
import tools.tsp.TSPSolver;
import javax.swing.*;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.util.ArrayList;
i... | 16,225 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
ChangeTimer.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/ChangeTimer.java | package tools;
import emulator.SuperCC;
import javax.swing.*;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
public class ChangeTimer {
private JPanel mainPanel;
private JSpinner spinner;
public ChangeTimer(SuperCC emulator){
sho... | 1,090 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
SimulatedAnnealing.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/tsp/SimulatedAnnealing.java | package tools.tsp;
import tools.TSPGUI;
import javax.swing.*;
import java.util.ArrayList;
import java.util.Random;
public class SimulatedAnnealing {
private TSPGUI gui;
private double temperature;
private double end;
private double cooling;
private int iterations;
private int[][] distances;
... | 9,769 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
ActingWallParameters.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/tsp/ActingWallParameters.java | package tools.tsp;
public class ActingWallParameters {
public boolean isWaterWall;
public boolean isFireWall;
public boolean isBombWall;
public boolean isThiefWall;
public boolean isTrapWall;
public ActingWallParameters(boolean isWaterWall, boolean isFireWall, boolean isBombWall, boolean isThi... | 552 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
SimulatedAnnealingParameters.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/tsp/SimulatedAnnealingParameters.java | package tools.tsp;
public class SimulatedAnnealingParameters {
public double startTemp;
public double endTemp;
public double cooling;
public int iterations;
public SimulatedAnnealingParameters(double startTemp, double endTemp, double cooling, int iterations) {
this.startTemp = startTemp;
... | 429 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
TSPSolver.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/tsp/TSPSolver.java | package tools.tsp;
import emulator.Solution;
import emulator.SuperCC;
import emulator.TickFlags;
import game.*;
import tools.TSPGUI;
import util.CharList;
import javax.swing.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.PriorityQueue;
public class TSPSolver {
public static final int IN... | 18,642 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
Expr.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/variation/Expr.java | package tools.variation;
import java.util.ArrayList;
import java.util.Objects;
public abstract class Expr {
interface Evaluator {
Object evaluateBinary(Binary expr);
Object evaluateLiteral(Literal expr);
Object evaluateGroup(Group expr);
Object evaluateLogical(Logical expr);
... | 7,407 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
Stmt.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/variation/Stmt.java | package tools.variation;
import java.util.ArrayList;
import java.util.Objects;
public abstract class Stmt {
interface Executor {
void executeExpression(Expression stmt);
void executeBlock(Block stmt);
void executeIf(If stmt);
void executeFor(For stmt);
void executePrint(Pri... | 8,726 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
BoundLimit.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/variation/BoundLimit.java | package tools.variation;
import java.util.Objects;
public class BoundLimit {
public Integer lower = null;
public Integer upper = null;
public BoundLimit() {
}
public BoundLimit(Integer limit) {
this.lower = limit;
this.upper = limit;
}
public BoundLimit(Integer lower, I... | 1,419 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
Interpreter.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/variation/Interpreter.java | package tools.variation;
import emulator.Solution;
import emulator.SuperCC;
import emulator.TickFlags;
import game.Level;
import tools.VariationTesting;
import util.CharList;
import javax.swing.*;
import javax.swing.text.BadLocationException;
import javax.swing.text.Style;
import javax.swing.text.StyleConstants;
impo... | 16,450 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
VariationManager.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/variation/VariationManager.java | package tools.variation;
import emulator.SuperCC;
import game.Level;
import util.CharList;
import java.awt.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
public class VariationManager {
private ArrayList<Stmt.Sequence> sequences = new ArrayList<>()... | 7,922 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
Multiset.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/variation/Multiset.java | package tools.variation;
import emulator.SuperCC;
import util.CharList;
import java.util.ArrayList;
import java.util.HashMap;
public class Multiset {
private MovePool movePoolForced;
private int[] movePool;
private BoundLimit limits;
public int currentSize;
private int[] subset;
public boolea... | 6,658 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
MovePoolContainer.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/variation/MovePoolContainer.java | package tools.variation;
import java.util.Objects;
public class MovePoolContainer {
public MovePool optional = new MovePool();
public MovePool forced = new MovePool();
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) ... | 587 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
Parser.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/variation/Parser.java | package tools.variation;
import game.Tile;
import javax.swing.*;
import javax.swing.text.BadLocationException;
import javax.swing.text.Style;
import javax.swing.text.StyleConstants;
import javax.swing.text.StyledDocument;
import java.awt.*;
import java.util.ArrayList;
import java.util.HashMap;
public class Parser {
... | 16,754 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
Token.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/variation/Token.java | package tools.variation;
import java.awt.*;
import java.util.HashMap;
import java.util.Objects;
public class Token {
public final TokenType type;
public final String lexeme;
public final Object value;
public final int line;
public Token(TokenType type, String lexeme, Object value, int line) {
... | 940 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
Tokenizer.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/variation/Tokenizer.java | package tools.variation;
import game.Tile;
import java.util.ArrayList;
import java.util.HashMap;
public class Tokenizer {
private String code;
private ArrayList<Token> tokens;
private int start = 0;
private int current = 0;
private int line = 1;
private static final String moves = "urdlwhURDL... | 12,182 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
TokenType.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/variation/TokenType.java | package tools.variation;
public enum TokenType {
// Structural
LEFT_BRACKET, RIGHT_BRACKET, LEFT_PAREN, RIGHT_PAREN,
LEFT_BRACE, RIGHT_BRACE, COMMA, SEMICOLON, COLON,
// Operations
PLUS, MINUS, PLUS_PLUS, MINUS_MINUS, SLASH, STAR, MODULO,
EQUAL, PLUS_EQUAL, MINUS_EQUAL, SLASH_EQUAL, STAR_EQUAL... | 887 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
FunctionEvaluator.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/variation/FunctionEvaluator.java | package tools.variation;
import emulator.SuperCC;
import game.Position;
import util.CharList;
import java.awt.*;
import java.util.ArrayList;
public class FunctionEvaluator {
private SuperCC emulator;
private Interpreter interpreter;
private VariationManager manager;
public FunctionEvaluator(SuperCC ... | 10,848 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
MovePool.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/variation/MovePool.java | package tools.variation;
import java.util.HashMap;
import java.util.Objects;
public class MovePool {
public HashMap<String, Integer> moves = new HashMap<>();
public int size = 0;
public MovePool() {
}
public void add(Move move) {
if(moves.get(move.move) == null) {
moves.put(... | 1,632 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
Move.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/variation/Move.java | package tools.variation;
public class Move {
public final String value;
public final int number;
public final String move;
public Move(String value) {
this.value = value;
int numIndex = 0;
while(value.charAt(numIndex) >= '0' && value.charAt(numIndex) <= '9') {
numI... | 818 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
Permutation.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/variation/Permutation.java | package tools.variation;
import util.CharList;
import java.util.Arrays;
public class Permutation {
private MovePoolContainer movePools;
public BoundLimit limits;
private int[] permutation;
public boolean finished = false;
private Multiset set;
private int[] subset;
private int currentSize... | 5,832 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
SequenceLifecycle.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/tools/variation/SequenceLifecycle.java | package tools.variation;
import java.util.Objects;
public class SequenceLifecycle {
public Stmt start = new Stmt.Empty();
public Stmt beforeMove = new Stmt.Empty();
public Stmt afterMove = new Stmt.Empty();
public Stmt beforeStep = new Stmt.Empty();
public Stmt afterStep = new Stmt.Empty();
pu... | 1,092 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
GamePanel.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/graphics/GamePanel.java | package graphics;
import emulator.SuperCC;
import emulator.TickFlags;
import game.*;
import game.MS.*;
import game.button.ConnectionButton;
import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;
import java.awt.image.B... | 17,626 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
SmallGamePanel.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/graphics/SmallGamePanel.java | package graphics;
import game.*;
import game.MS.*;
import game.button.ConnectionButton;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.awt.image.WritableRaster;
import java.io.IOException;
import java.util.Collection;
import java.util.List;
public class SmallGamePanel extends GamePanel {
... | 15,934 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
LevelPanel.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/graphics/LevelPanel.java | package graphics;
import game.Level;
import java.awt.*;
public class LevelPanel extends TextPanel {
private static boolean twsNotation;
private static String timerToString(Level level){
boolean untimed = level.isUntimed();
int timePerSecond = level.ticksPerMove()*5;
int twsMax = tim... | 2,997 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
MovePanel.java | /FileExtraction/Java_unseen/SicklySilverMoon_SuperCC/src/main/java/graphics/MovePanel.java | package graphics;
import game.Level;
import java.awt.*;
import java.awt.event.MouseWheelEvent;
import java.awt.event.MouseWheelListener;
public class MovePanel extends TextPanel implements MouseWheelListener {
private static final int SCROLL_WHEEL_MULTIPLIER = 8,
MIN_SCROLL = 32... | 1,210 | Java | .java | SicklySilverMoon/SuperCC | 12 | 4 | 0 | 2019-04-17T23:57:42Z | 2022-05-14T03:33:32Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.