Skip to content

Commit 622abaa

Browse files
author
Leon Hwang
authored
Merge pull request #12 from javinp/master
Whizzml Resources
2 parents ae425b7 + 1936975 commit 622abaa

15 files changed

Lines changed: 2357 additions & 114 deletions

src/main/java/org/bigml/binding/BigMLClient.java

Lines changed: 549 additions & 10 deletions
Large diffs are not rendered by default.

src/main/java/org/bigml/binding/resources/AbstractResource.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ public abstract class AbstractResource {
5050
public final static String CORRELATION_PATH = "correlation";
5151
public final static String STATISTICALTEST_PATH = "statisticaltest";
5252
public final static String LOGISTICREGRESSION_PATH = "logisticregression";
53+
public final static String SCRIPT_PATH = "script";
54+
public final static String EXECUTION_PATH = "execution";
55+
public final static String LIBRARY_PATH = "library";
5356

5457

5558
// Base Resource regular expressions
@@ -86,6 +89,9 @@ public abstract class AbstractResource {
8689
+ "/[a-f,0-9]{24}$";
8790
static String LOGISTICREGRESSION_RE = "^" + LOGISTICREGRESSION_PATH
8891
+ "/[a-f,0-9]{24}$";
92+
static String SCRIPT_RE = "^" + SCRIPT_PATH + "/[a-f,0-9]{24}$";
93+
static String EXECUTION_RE = "^" + EXECUTION_PATH + "/[a-f,0-9]{24}$";
94+
static String LIBRARY_RE = "^" + LIBRARY_PATH + "/[a-f,0-9]{24}$";
8995

9096
// HTTP Status Codes from https://bigml.com/developers/status_codes
9197
public static int HTTP_OK = 200;
@@ -159,6 +165,9 @@ public abstract class AbstractResource {
159165
protected String CORRELATION_URL;
160166
protected String STATISTICALTEST_URL;
161167
protected String LOGISTICREGRESSION_URL;
168+
protected String SCRIPT_URL;
169+
protected String EXECUTION_URL;
170+
protected String LIBRARY_URL;
162171

163172
public final static String DOWNLOAD_DIR = "/download";
164173

@@ -185,6 +194,9 @@ protected void init(CacheManager cacheManager) {
185194
CORRELATION_URL = BIGML_URL + CORRELATION_PATH;
186195
STATISTICALTEST_URL = BIGML_URL + STATISTICALTEST_PATH;
187196
LOGISTICREGRESSION_URL = BIGML_URL + LOGISTICREGRESSION_PATH;
197+
SCRIPT_URL = BIGML_URL + SCRIPT_PATH;
198+
EXECUTION_URL = BIGML_URL + EXECUTION_PATH;
199+
LIBRARY_URL = BIGML_URL + LIBRARY_PATH;
188200

189201
this.cacheManager = cacheManager;
190202
} catch (AuthenticationException ae) {

0 commit comments

Comments
 (0)