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
librec
librec-master/librec/src/main/java/librec/ext/NMF.java
// Copyright (C) 2014 Guibing Guo // // This file is part of LibRec. // // LibRec is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. //...
3,307
23.145985
118
java
librec
librec-master/librec/src/main/java/librec/ext/PRankD.java
// Copyright (C) 2014 Guibing Guo // // This file is part of LibRec. // // LibRec is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. //...
4,293
22.336957
112
java
librec
librec-master/librec/src/main/java/librec/ext/SlopeOne.java
// Copyright (C) 2014 Guibing Guo // // This file is part of LibRec. // // LibRec is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. //...
2,538
25.175258
112
java
librec
librec-master/librec/src/main/java/librec/main/Demo.java
// Copyright (C) 2014 Guibing Guo // // This file is part of LibRec. // // LibRec is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. //...
5,936
27.406699
138
java
librec
librec-master/librec/src/main/java/librec/main/LibRec.java
// Copyright (C) 2014 Guibing Guo // // This file is part of LibRec. // // LibRec is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. //...
26,623
28.289329
118
java
incubator-teaclave-sgx-sdk
incubator-teaclave-sgx-sdk-master/samplecode/mio/client-java/.mvn/wrapper/MavenWrapperDownloader.java
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this f...
4,625
39.226087
116
java
incubator-teaclave-sgx-sdk
incubator-teaclave-sgx-sdk-master/samplecode/mio/client-java/src/main/java/org/rustsgx/mio/AppClient.java
package org.rustsgx.mio; import org.apache.commons.io.IOUtils; import org.apache.http.NameValuePair; import org.apache.http.client.utils.URIBuilder; import org.apache.http.message.BasicNameValuePair; import javax.net.ssl.HttpsURLConnection; import java.io.IOException; import java.io.StringWriter; import java.net.Http...
2,486
30.481013
108
java
incubator-teaclave-sgx-sdk
incubator-teaclave-sgx-sdk-master/samplecode/mio/client-java/src/main/java/org/rustsgx/mio/MIOClientApplication.java
package org.rustsgx.mio; import org.springframework.boot.autoconfigure.SpringBootApplication; import java.net.Socket; import java.util.HashMap; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; @SpringBootApplication public class MIOClientApplic...
1,113
30.828571
87
java
incubator-teaclave-sgx-sdk
incubator-teaclave-sgx-sdk-master/samplecode/mio/client-java/src/main/java/org/rustsgx/mio/SSLHelper.java
package org.rustsgx.mio; import javax.net.ssl.*; import java.io.File; import java.io.IOException; import java.net.URISyntaxException; import java.security.KeyManagementException; import java.security.KeyStore; import java.security.KeyStoreException; import java.security.NoSuchAlgorithmException; import java.security.c...
1,837
38.956522
181
java
incubator-teaclave-sgx-sdk
incubator-teaclave-sgx-sdk-master/samplecode/ue-ra/ue-ra-client-java/.mvn/wrapper/MavenWrapperDownloader.java
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this f...
4,625
39.226087
116
java
incubator-teaclave-sgx-sdk
incubator-teaclave-sgx-sdk-master/samplecode/ue-ra/ue-ra-client-java/src/main/java/org/rustsgx/ueraclientjava/CommonUtils.java
package org.rustsgx.ueraclientjava; import java.io.File; import java.util.ArrayList; import java.util.List; public class CommonUtils { public static List<Byte> string2BytesList(String[] strings) { ArrayList<Byte> arrayList = new ArrayList<Byte>(); for (int i = 0; i < strings.length; i++) { ...
2,404
31.066667
102
java
incubator-teaclave-sgx-sdk
incubator-teaclave-sgx-sdk-master/samplecode/ue-ra/ue-ra-client-java/src/main/java/org/rustsgx/ueraclientjava/PemReader.java
package org.rustsgx.ueraclientjava; import java.io.*; import java.nio.CharBuffer; import java.security.*; import java.security.spec.PKCS8EncodedKeySpec; import java.security.GeneralSecurityException; import java.security.cert.CertificateFactory; import java.security.cert.X509Certificate; import java.util.ArrayList; im...
3,237
37.547619
121
java
incubator-teaclave-sgx-sdk
incubator-teaclave-sgx-sdk-master/samplecode/ue-ra/ue-ra-client-java/src/main/java/org/rustsgx/ueraclientjava/PlatformInfoBlob.java
package org.rustsgx.ueraclientjava; import java.util.Arrays; public class PlatformInfoBlob { private int sgx_epid_group_flags; private long sgx_tcb_evaluation_flags; private long pse_evaluation_flags; private String latest_equivalent_tcb_psvn; private String latest_pse_isvsvn; private String l...
4,650
28.251572
92
java
incubator-teaclave-sgx-sdk
incubator-teaclave-sgx-sdk-master/samplecode/ue-ra/ue-ra-client-java/src/main/java/org/rustsgx/ueraclientjava/QuoteReportData.java
package org.rustsgx.ueraclientjava; //TODO: add more origin filed if needed public class QuoteReportData { private int version; private int signType; private QuoteReportBody quoteReportBody; public void setVersion(int version) { this.version = version; } public void setSignType(int si...
1,984
26.191781
93
java
incubator-teaclave-sgx-sdk
incubator-teaclave-sgx-sdk-master/samplecode/ue-ra/ue-ra-client-java/src/main/java/org/rustsgx/ueraclientjava/ServerCertData.java
package org.rustsgx.ueraclientjava; import java.util.List; public class ServerCertData { public List<Byte> payload; public byte[] pub_k; public ServerCertData(List<Byte> payload, byte[] pub_k) { this.payload = payload; this.pub_k = pub_k; } }
277
20.384615
61
java
incubator-teaclave-sgx-sdk
incubator-teaclave-sgx-sdk-master/samplecode/ue-ra/ue-ra-client-java/src/main/java/org/rustsgx/ueraclientjava/SgxCertVerifier.java
package org.rustsgx.ueraclientjava; import java.io.File; import java.security.KeyStore; import java.security.PrivateKey; import java.security.cert.Certificate; import java.util.ArrayList; import java.util.List; import javax.net.ssl.KeyManagerFactory; import javax.net.ssl.TrustManager; import javax.net.ssl.X509TrustMan...
2,906
39.943662
122
java
incubator-teaclave-sgx-sdk
incubator-teaclave-sgx-sdk-master/samplecode/ue-ra/ue-ra-client-java/src/main/java/org/rustsgx/ueraclientjava/SgxQuoteReport.java
package org.rustsgx.ueraclientjava; public class SgxQuoteReport { private String id; private String timestamp; private int version; private String isvEnclaveQuoteStatus; private String platformInfoBlob; private String isvEnclaveQuoteBody; public String getId() { return id; } ...
710
19.911765
46
java
incubator-teaclave-sgx-sdk
incubator-teaclave-sgx-sdk-master/samplecode/ue-ra/ue-ra-client-java/src/main/java/org/rustsgx/ueraclientjava/UeRaClientJavaApplication.java
package org.rustsgx.ueraclientjava; import org.springframework.boot.autoconfigure.SpringBootApplication; import javax.net.ssl.*; import java.io.*; import java.net.Socket; import java.security.*; @SpringBootApplication public class UeRaClientJavaApplication { public static void main(String[] args) { Syst...
1,354
30.511628
123
java
incubator-teaclave-sgx-sdk
incubator-teaclave-sgx-sdk-master/samplecode/ue-ra/ue-ra-client-java/src/main/java/org/rustsgx/ueraclientjava/VerifyMraCert.java
package org.rustsgx.ueraclientjava; import com.google.gson.Gson; import com.sun.org.apache.xerces.internal.impl.dv.util.HexBin; import org.bouncycastle.cert.X509CertificateHolder; import org.bouncycastle.cert.jcajce.JcaX509CertificateConverter; import org.bouncycastle.openssl.PEMParser; import org.joda.time.DateTime; ...
8,579
43.921466
119
java
incubator-teaclave-sgx-sdk
incubator-teaclave-sgx-sdk-master/samplecode/ue-ra/ue-ra-client-java/src/test/java/org/rustsgx/ueraclientjava/UeRaClientJavaApplicationTests.java
package org.rustsgx.ueraclientjava; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest public class UeRaClientJavaApplicationTests { @Test publ...
351
19.705882
60
java
MicroRTS
MicroRTS-master/src/ai/BranchingFactorCalculatorBigInteger.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai; import java.math.BigInteger; import java.util.HashSet; import java.util.LinkedList; import java.util.List; import rts.Gam...
13,219
41.783172
118
java
MicroRTS
MicroRTS-master/src/ai/BranchingFactorCalculatorDouble.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai; import java.util.HashSet; import java.util.LinkedList; import java.util.List; import rts.GameState; import rts.PhysicalGa...
12,286
40.231544
114
java
MicroRTS
MicroRTS-master/src/ai/BranchingFactorCalculatorLong.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai; import java.util.HashSet; import java.util.LinkedList; import java.util.List; import rts.GameState; import rts.PhysicalGa...
12,232
40.050336
112
java
MicroRTS
MicroRTS-master/src/ai/PassiveAI.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai; import ai.core.AI; import ai.core.ParameterSpecification; import java.util.ArrayList; import java.util.List; import rts.*; import rts.units.UnitTypeTable; /** * * @author santi */ public class PassiveAI ...
896
15.611111
61
java
MicroRTS
MicroRTS-master/src/ai/RandomAI.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai; import ai.core.AI; import ai.core.ParameterSpecification; import java.util.ArrayList; import java.util.List; import rts.*; import rts.units.UnitTypeTable; /** * * @author santi */ public class RandomAI e...
1,348
21.483333
106
java
MicroRTS
MicroRTS-master/src/ai/RandomBiasedAI.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai; import ai.core.AI; import ai.core.ParameterSpecification; import java.util.ArrayList; import java.util.List; import java.util.Random; import rts.*; import rts.units.Unit; import rts.units.UnitTypeTable; impo...
3,559
29.42735
102
java
MicroRTS
MicroRTS-master/src/ai/RandomBiasedSingleUnitAI.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai; import ai.core.AI; import ai.core.ParameterSpecification; import java.util.ArrayList; import java.util.List; import java.util.Random; import rts.*; import rts.units.Unit; import rts.units.UnitTypeTable; impo...
3,644
28.16
102
java
MicroRTS
MicroRTS-master/src/ai/abstraction/AbstractAction.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction; import ai.abstraction.pathfinding.AStarPathFinding; import ai.abstraction.pathfinding.BFSPathFinding; import ai.abstraction.pathfinding.FloodFillPathFinding; import ai.abstraction.pathfinding.Gre...
3,330
32.646465
93
java
MicroRTS
MicroRTS-master/src/ai/abstraction/AbstractTrace.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction; import ai.abstraction.AbstractAction; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.LinkedList; import java.util.List; import org.jdom.Element; import rts.units.Unit;...
2,326
24.855556
82
java
MicroRTS
MicroRTS-master/src/ai/abstraction/AbstractTraceEntry.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction; import ai.abstraction.AbstractAction; import java.util.LinkedList; import java.util.List; import org.jdom.Element; import rts.PhysicalGameState; import rts.units.Unit; import rts.units.UnitTypeTa...
2,675
29.067416
101
java
MicroRTS
MicroRTS-master/src/ai/abstraction/AbstractionLayerAI.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction; import ai.abstraction.pathfinding.PathFinding; import ai.core.AIWithComputationBudget; import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.List;...
9,312
34.819231
163
java
MicroRTS
MicroRTS-master/src/ai/abstraction/Attack.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction; import ai.abstraction.pathfinding.PathFinding; import rts.GameState; import rts.PhysicalGameState; import rts.ResourceUsage; import rts.UnitAction; import rts.units.Unit; import util.XMLWriter; ...
1,952
28.149254
162
java
MicroRTS
MicroRTS-master/src/ai/abstraction/Build.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction; import ai.abstraction.pathfinding.PathFinding; import rts.GameState; import rts.PhysicalGameState; import rts.ResourceUsage; import rts.UnitAction; import rts.units.Unit; import rts.units.UnitTyp...
2,685
32.575
164
java
MicroRTS
MicroRTS-master/src/ai/abstraction/EMRDeterministico.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction; import ai.abstraction.AbstractAction; import ai.abstraction.AbstractionLayerAI; import ai.abstraction.Harvest;...
12,443
33.470914
154
java
MicroRTS
MicroRTS-master/src/ai/abstraction/EconomyMilitaryRush.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction; import ai.abstraction.AbstractAction; import ai.abstraction.AbstractionLayerAI; import ai.abstraction.Harvest;...
12,995
33.290237
154
java
MicroRTS
MicroRTS-master/src/ai/abstraction/EconomyRush.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction; import ai.abstraction.AbstractAction; import ai.abstraction.AbstractionLayerAI; import ai.abstraction.Harvest;...
13,712
33.804569
154
java
MicroRTS
MicroRTS-master/src/ai/abstraction/EconomyRushBurster.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction; import ai.abstraction.AbstractAction; import ai.abstraction.AbstractionLayerAI; import ai.abstraction.Harvest;...
12,072
33.008451
154
java
MicroRTS
MicroRTS-master/src/ai/abstraction/Harvest.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction; import ai.abstraction.pathfinding.PathFinding; import rts.GameState; import rts.PhysicalGameState; import rts.ResourceUsage; import rts.UnitAction; import rts.units.Unit; import util.XMLWriter; ...
4,458
37.439655
175
java
MicroRTS
MicroRTS-master/src/ai/abstraction/HeavyDefense.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction; import ai.abstraction.pathfinding.AStarPathFinding; import ai.core.AI; import ai.abstraction.pathfinding.PathFinding; import ai.core.ParameterSpecification; import java.util.ArrayList; import jav...
8,566
32.33463
133
java
MicroRTS
MicroRTS-master/src/ai/abstraction/HeavyRush.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction; import ai.abstraction.pathfinding.AStarPathFinding; import ai.core.AI; import ai.abstraction.pathfinding.PathFinding; import ai.core.ParameterSpecification; import java.util.ArrayList; import jav...
9,375
33.597786
127
java
MicroRTS
MicroRTS-master/src/ai/abstraction/Idle.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction; import rts.GameState; import rts.PhysicalGameState; import rts.ResourceUsage; import rts.UnitAction; import rts.units.Unit; import util.XMLWriter; /** * * @author santi */ public class Idle e...
1,409
23.736842
103
java
MicroRTS
MicroRTS-master/src/ai/abstraction/LightDefense.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction; import ai.abstraction.pathfinding.AStarPathFinding; import ai.core.AI; import ai.abstraction.pathfinding.PathFinding; import ai.core.ParameterSpecification; import java.util.ArrayList; import jav...
8,798
32.842308
133
java
MicroRTS
MicroRTS-master/src/ai/abstraction/LightRush.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction; import ai.abstraction.pathfinding.AStarPathFinding; import ai.core.AI; import ai.abstraction.pathfinding.PathFinding; import ai.core.ParameterSpecification; import java.util.ArrayList; import jav...
9,388
33.518382
127
java
MicroRTS
MicroRTS-master/src/ai/abstraction/Move.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction; import ai.abstraction.pathfinding.PathFinding; import rts.GameState; import rts.PhysicalGameState; import rts.ResourceUsage; import rts.UnitAction; import rts.units.Unit; import util.XMLWriter; ...
1,471
23.949153
140
java
MicroRTS
MicroRTS-master/src/ai/abstraction/RangedDefense.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction; import ai.abstraction.pathfinding.AStarPathFinding; import ai.core.AI; import ai.abstraction.pathfinding.PathFinding; import ai.core.ParameterSpecification; import java.util.ArrayList; import jav...
8,178
32.11336
133
java
MicroRTS
MicroRTS-master/src/ai/abstraction/RangedRush.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction; import ai.abstraction.pathfinding.AStarPathFinding; import ai.core.AI; import ai.abstraction.pathfinding.PathFinding; import ai.core.ParameterSpecification; import java.util.ArrayList; import jav...
8,720
32.802326
127
java
MicroRTS
MicroRTS-master/src/ai/abstraction/SimpleEconomyRush.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction; import ai.abstraction.AbstractAction; import ai.abstraction.AbstractionLayerAI; import ai.abstraction.Harvest;...
10,356
33.069079
116
java
MicroRTS
MicroRTS-master/src/ai/abstraction/Train.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction; import rts.GameState; import rts.PhysicalGameState; import rts.ResourceUsage; import rts.UnitAction; import rts.units.Unit; import rts.units.UnitType; import util.XMLWriter; /** * * @author sa...
3,878
28.838462
95
java
MicroRTS
MicroRTS-master/src/ai/abstraction/WorkerDefense.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction; import ai.abstraction.AbstractAction; import ai.abstraction.AbstractionLayerAI; import ai.abstraction.Harvest; import ai.abstraction.pathfinding.AStarPathFinding; import ai.abstraction.pathfindin...
7,575
32.522124
116
java
MicroRTS
MicroRTS-master/src/ai/abstraction/WorkerRush.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction; import ai.abstraction.pathfinding.AStarPathFinding; import ai.core.AI; import ai.abstraction.pathfinding.PathFinding; import ai.core.ParameterSpecification; import java.util.ArrayList; import jav...
7,462
33.391705
139
java
MicroRTS
MicroRTS-master/src/ai/abstraction/WorkerRushPlusPlus.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction; import ai.abstraction.AbstractAction; import ai.abstraction.AbstractionLayerAI; import ai.abstraction.Harvest; import ai.abstraction.pathfinding.AStarPathFinding; import ai.abstraction.pathfindin...
7,690
32.585153
116
java
MicroRTS
MicroRTS-master/src/ai/abstraction/cRush/CRanged_Tactic.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction.cRush; import ai.abstraction.AbstractAction; import ai.abstraction.Attack; import ai.abstraction.pathfinding.PathFinding; import java.util.List; import rts.GameState; import rts.PhysicalGameState...
15,030
37.344388
175
java
MicroRTS
MicroRTS-master/src/ai/abstraction/cRush/CRush_V1.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction.cRush; import ai.abstraction.AbstractAction; import ai.abstraction.AbstractionLayerAI; import ai.abstraction.Harvest; import ai.abstraction.pathfinding.AStarPathFinding; import ai.core.AI; import ...
14,780
32.823799
109
java
MicroRTS
MicroRTS-master/src/ai/abstraction/cRush/CRush_V2.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction.cRush; import ai.abstraction.AbstractAction; import ai.abstraction.AbstractionLayerAI; import ai.abstraction.Harvest; import ai.abstraction.pathfinding.AStarPathFinding; import ai.core.AI; import ...
17,612
34.155689
130
java
MicroRTS
MicroRTS-master/src/ai/abstraction/cRush/RangedAttack.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction.cRush; import ai.abstraction.AbstractAction; import ai.abstraction.pathfinding.PathFinding; import rts.GameState; import rts.PhysicalGameState; import rts.ResourceUsage; import rts.UnitAction; imp...
2,989
31.857143
187
java
MicroRTS
MicroRTS-master/src/ai/abstraction/partialobservability/POHeavyRush.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction.partialobservability; import ai.abstraction.HeavyRush; import ai.abstraction.pathfinding.AStarPathFinding; impo...
2,612
30.865854
99
java
MicroRTS
MicroRTS-master/src/ai/abstraction/partialobservability/POLightRush.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction.partialobservability; import ai.abstraction.LightRush; import ai.abstraction.pathfinding.AStarPathFinding; impo...
2,612
30.865854
99
java
MicroRTS
MicroRTS-master/src/ai/abstraction/partialobservability/PORangedRush.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction.partialobservability; import ai.abstraction.RangedRush; import ai.abstraction.pathfinding.AStarPathFinding; imp...
2,618
30.939024
99
java
MicroRTS
MicroRTS-master/src/ai/abstraction/partialobservability/POWorkerRush.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction.partialobservability; import ai.abstraction.WorkerRush; import ai.abstraction.pathfinding.AStarPathFinding; imp...
2,618
30.939024
99
java
MicroRTS
MicroRTS-master/src/ai/abstraction/pathfinding/AStarPathFinding.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction.pathfinding; import rts.GameState; import rts.PhysicalGameState; import rts.ResourceUsage; import rts.UnitAction; import rts.units.Unit; /** * * @author santi * * A* pathfinding. * * The...
15,228
38.762402
192
java
MicroRTS
MicroRTS-master/src/ai/abstraction/pathfinding/BFSPathFinding.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction.pathfinding; import rts.GameState; import rts.PhysicalGameState; import rts.ResourceUsage; import rts.UnitAction; import rts.units.Unit; /** * * @author santi */ public class BFSPathFinding ex...
6,906
39.156977
159
java
MicroRTS
MicroRTS-master/src/ai/abstraction/pathfinding/FloodFillPathFinding.java
package ai.abstraction.pathfinding; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import rts.GameState; import rts.PhysicalGameState; import rts.ResourceUsage; import rts.UnitAction; import rts.units.Unit; import util.Pair; public class FloodFillPathFinding extends PathFinding { Pat...
6,944
30.712329
116
java
MicroRTS
MicroRTS-master/src/ai/abstraction/pathfinding/GreedyPathFinding.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction.pathfinding; import rts.GameState; import rts.PhysicalGameState; import rts.ResourceUsage; import rts.UnitAction; import rts.units.Unit; /** * * @author santi */ public class GreedyPathFinding...
4,031
34.681416
119
java
MicroRTS
MicroRTS-master/src/ai/abstraction/pathfinding/PathFinding.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.abstraction.pathfinding; import rts.GameState; import rts.ResourceUsage; import rts.UnitAction; import rts.units.Unit; /** * * @author santi */ public abstract class PathFinding { public abstract bool...
951
34.259259
127
java
MicroRTS
MicroRTS-master/src/ai/ahtn/AHTNAI.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.ahtn; import ai.abstraction.WorkerRush; import java.util.LinkedList; import java.util.List; import rts.GameState; import ...
8,847
36.974249
231
java
MicroRTS
MicroRTS-master/src/ai/ahtn/domain/Binding.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.ahtn.domain; /** * * @author santi */ public class Binding { public Variable v; public Parameter p; pu...
635
20.2
94
java
MicroRTS
MicroRTS-master/src/ai/ahtn/domain/Clause.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.ahtn.domain; import java.util.HashMap; import java.util.ArrayList; import java.util.List; import rts.GameState; import ai...
14,219
37.328841
155
java
MicroRTS
MicroRTS-master/src/ai/ahtn/domain/DomainDefinition.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.ahtn.domain; import ai.ahtn.domain.LispParser.LispElement; import ai.ahtn.domain.LispParser.LispParser; import java.util.H...
4,210
32.688
155
java
MicroRTS
MicroRTS-master/src/ai/ahtn/domain/Function.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.ahtn.domain; import ai.ahtn.domain.LispParser.LispElement; import java.util.List; import rts.GameState; /** * * @author...
2,647
27.170213
96
java
MicroRTS
MicroRTS-master/src/ai/ahtn/domain/HTNMethod.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.ahtn.domain; import ai.ahtn.domain.LispParser.LispElement; import ai.ahtn.planner.AdversarialChoicePoint; import java.util...
3,630
29.008264
156
java
MicroRTS
MicroRTS-master/src/ai/ahtn/domain/HTNOperator.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.ahtn.domain; import ai.ahtn.domain.LispParser.LispElement; /** * * @author santi */ public class HTNOperator { Ter...
1,188
23.770833
93
java
MicroRTS
MicroRTS-master/src/ai/ahtn/domain/IntegerConstant.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.ahtn.domain; import java.util.ArrayList; import java.util.List; import rts.GameState; /** * * @author santi */ public ...
1,189
19.877193
84
java
MicroRTS
MicroRTS-master/src/ai/ahtn/domain/MethodDecomposition.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.ahtn.domain; import ai.ahtn.domain.LispParser.LispElement; import ai.ahtn.planner.AdversarialChoicePoint; import java.uti...
23,431
36.915858
156
java
MicroRTS
MicroRTS-master/src/ai/ahtn/domain/Parameter.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.ahtn.domain; import java.util.List; import rts.GameState; /** * * @author santi */ public interface Parameter { //...
819
26.333333
79
java
MicroRTS
MicroRTS-master/src/ai/ahtn/domain/PredefinedFunctions.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.ahtn.domain; import java.util.HashMap; import rts.GameState; import rts.UnitAction; /** * * @author santi */ public cl...
3,289
40.125
111
java
MicroRTS
MicroRTS-master/src/ai/ahtn/domain/PredefinedOperators.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.ahtn.domain; import ai.abstraction.pathfinding.AStarPathFinding; import ai.abstraction.pathfinding.PathFinding; import jav...
27,012
58.5
158
java
MicroRTS
MicroRTS-master/src/ai/ahtn/domain/PredefinedPredicates.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.ahtn.domain; import ai.abstraction.pathfinding.AStarPathFinding; import ai.abstraction.pathfinding.PathFinding; import jav...
45,945
56.4325
149
java
MicroRTS
MicroRTS-master/src/ai/ahtn/domain/Symbol.java
/* * Creator: Santi Ontanon Villar */ /** * Copyright (c) 2013, Santiago Ontañón All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copy...
4,048
27.514085
150
java
MicroRTS
MicroRTS-master/src/ai/ahtn/domain/SymbolConstant.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.ahtn.domain; import java.util.ArrayList; import java.util.List; import rts.GameState; /** * * @author santi */ public ...
1,273
21.350877
79
java
MicroRTS
MicroRTS-master/src/ai/ahtn/domain/Term.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.ahtn.domain; import ai.ahtn.domain.LispParser.LispElement; import ai.ahtn.domain.LispParser.LispParser; import java.util.H...
8,527
31.06015
128
java
MicroRTS
MicroRTS-master/src/ai/ahtn/domain/Variable.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.ahtn.domain; import java.util.LinkedList; import java.util.List; import rts.GameState; /** * * @author santi * * *...
2,456
24.59375
128
java
MicroRTS
MicroRTS-master/src/ai/ahtn/domain/LispParser/LispElement.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.ahtn.domain.LispParser; import java.util.LinkedList; import java.util.List; /** * * @author santi */ public class Lisp...
1,226
21.722222
79
java
MicroRTS
MicroRTS-master/src/ai/ahtn/domain/LispParser/LispParser.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.ahtn.domain.LispParser; import java.io.BufferedReader; import java.io.FileReader; import java.io.StringReader; import java...
1,926
28.646154
93
java
MicroRTS
MicroRTS-master/src/ai/ahtn/domain/LispParser/LispTokenizer.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.ahtn.domain.LispParser; import java.io.BufferedReader; /** * * @author santi */ public class LispTokenizer { Buffe...
2,860
28.802083
107
java
MicroRTS
MicroRTS-master/src/ai/ahtn/planner/AdversarialBoundedDepthPlannerAlphaBeta.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.ahtn.planner; import ai.ahtn.domain.Binding; import ai.ahtn.domain.DomainDefinition; import ai.ahtn.domain.MethodDecomposi...
34,319
52.541342
327
java
MicroRTS
MicroRTS-master/src/ai/ahtn/planner/AdversarialChoicePoint.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.ahtn.planner; import ai.ahtn.domain.Binding; import ai.ahtn.domain.Clause; import ai.ahtn.domain.DomainDefinition; import ...
16,685
39.014388
168
java
MicroRTS
MicroRTS-master/src/ai/ahtn/planner/MethodDecompositionState.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.ahtn.planner; import ai.ahtn.domain.MethodDecomposition; import java.util.ArrayList; import java.util.List; /** * * @au...
1,448
29.829787
79
java
MicroRTS
MicroRTS-master/src/ai/ahtn/visualization/HTNDomainVisualizer.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.ahtn.visualization; import ai.ahtn.domain.DomainDefinition; import ai.ahtn.domain.HTNMethod; import ai.ahtn.domain.MethodD...
16,806
42.768229
160
java
MicroRTS
MicroRTS-master/src/ai/ahtn/visualization/HTNDomainVisualizerVertical.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.ahtn.visualization; import ai.ahtn.domain.DomainDefinition; import ai.ahtn.domain.HTNMethod; import ai.ahtn.domain.MethodD...
16,765
43.472149
146
java
MicroRTS
MicroRTS-master/src/ai/core/AI.java
package ai.core; import java.util.List; import rts.GameState; import rts.PlayerAction; import rts.units.UnitTypeTable; /** * Basic AI class for any microRTS controller. * In other words, any microRTS controller is a subclass of this class, * either directly or indirectly via other basic AI classes. * * @autho...
4,014
31.12
105
java
MicroRTS
MicroRTS-master/src/ai/core/AIWithComputationBudget.java
package ai.core; /** * An "AIWithComputationBudget" is one that is given a limit in the * amount of CPU it can use per game frame. This limit is specified in either: * - TIME_BUDGET: number of milliseconds that the call to "getAction" can take, or * - ITERATIONS_BUDGET: number of internal iterations the AI can us...
2,250
29.013333
87
java
MicroRTS
MicroRTS-master/src/ai/core/ContinuingAI.java
package ai.core; import java.util.List; import rts.GameState; import rts.PlayerAction; /** * * @author santi */ public class ContinuingAI extends AI { /** * Becomes verbose if >0 for debugging purposes */ public static int DEBUG = 0; /** * An {@link AI} instance that implements {@link Interr...
5,371
33.658065
161
java
MicroRTS
MicroRTS-master/src/ai/core/InterruptibleAI.java
package ai.core; import rts.GameState; import rts.PlayerAction; /** * A "InterruptibleAI" can divide the computation across multiple game frames. * * The idea is that of an "anytime" algorithm: compute until requested to return the best * solution so far. Computation is prepared by {@link #startNewComputation},...
2,275
32.470588
97
java
MicroRTS
MicroRTS-master/src/ai/core/ParameterSpecification.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.core; import java.util.ArrayList; import java.util.List; /** * * @author santi */ public class ParameterSpecification {...
962
22.487805
79
java
MicroRTS
MicroRTS-master/src/ai/core/PseudoContinuingAI.java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package ai.core; import java.util.List; import rts.GameState; import rts.PlayerAction; /** * * @author santi * * - This class is...
3,772
32.990991
168
java
MicroRTS
MicroRTS-master/src/ai/evaluation/EvaluationFunction.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.evaluation; import rts.GameState; /** * * @author santi */ public abstract class EvaluationFunction { public static float VICTORY = 10000; public abstract float evaluate(int maxplayer, in...
487
20.217391
79
java
MicroRTS
MicroRTS-master/src/ai/evaluation/EvaluationFunctionForwarding.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.evaluation; import rts.GameState; /** * * @author santi */ public class EvaluationFunctionForwarding extends EvaluationFunction { EvaluationFunction baseFunction; public EvaluationFunctionFo...
802
22.617647
71
java
MicroRTS
MicroRTS-master/src/ai/evaluation/LanchesterEvaluationFunction.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.evaluation; import rts.GameState; import rts.PhysicalGameState; import rts.units.*; /** * * @author santi */ public class LanchesterEvaluationFunction extends EvaluationFunction { public static fl...
3,343
32.777778
93
java
MicroRTS
MicroRTS-master/src/ai/evaluation/SimpleEvaluationFunction.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.evaluation; import rts.GameState; import rts.PhysicalGameState; import rts.units.*; /** * * @author santi */ public class SimpleEvaluationFunction extends EvaluationFunction { public static float ...
2,256
36.616667
121
java
MicroRTS
MicroRTS-master/src/ai/evaluation/SimpleOptEvaluationFunction.java
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ai.evaluation; import rts.GameState; import rts.PhysicalGameState; import rts.units.Unit; public class SimpleOptEvaluationFunction extends SimpleEvaluationFunction { public static float RESOURCE = 0.190...
2,264
39.446429
121
java