Repository: incubator-systemml
Updated Branches:
  refs/heads/master 882fa843e -> a712dad87


http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/a712dad8/src/main/java/org/apache/sysml/api/mlcontext/MatrixMetadata.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/api/mlcontext/MatrixMetadata.java 
b/src/main/java/org/apache/sysml/api/mlcontext/MatrixMetadata.java
index a583e90..8f4cad7 100644
--- a/src/main/java/org/apache/sysml/api/mlcontext/MatrixMetadata.java
+++ b/src/main/java/org/apache/sysml/api/mlcontext/MatrixMetadata.java
@@ -6,9 +6,9 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -42,7 +42,7 @@ public class MatrixMetadata extends Metadata {
 
        /**
         * Constructor to create a MatrixMetadata object based on matrix format.
-        * 
+        *
         * @param matrixFormat
         *            The matrix format.
         */
@@ -53,7 +53,7 @@ public class MatrixMetadata extends Metadata {
        /**
         * Constructor to create a MatrixMetadata object based on matrix 
format, the
         * number of rows, and the number of columns in a matrix.
-        * 
+        *
         * @param matrixFormat
         *            The matrix format.
         * @param numRows
@@ -70,7 +70,7 @@ public class MatrixMetadata extends Metadata {
        /**
         * Constructor to create a MatrixMetadata object based on matrix 
format, the
         * number of rows, and the number of columns in a matrix.
-        * 
+        *
         * @param matrixFormat
         *            The matrix format.
         * @param numRows
@@ -88,7 +88,7 @@ public class MatrixMetadata extends Metadata {
         * Constructor to create a MatrixMetadata object based on matrix 
format, the
         * number of rows, the number of columns, and the number of non-zero 
values
         * in a matrix.
-        * 
+        *
         * @param matrixFormat
         *            The matrix format.
         * @param numRows
@@ -109,7 +109,7 @@ public class MatrixMetadata extends Metadata {
         * Constructor to create a MatrixMetadata object based on matrix 
format, the
         * number of rows, the number of columns, and the number of non-zero 
values
         * in a matrix.
-        * 
+        *
         * @param matrixFormat
         *            The matrix format.
         * @param numRows
@@ -131,7 +131,7 @@ public class MatrixMetadata extends Metadata {
         * number of rows, the number of columns, the number of non-zero 
values, the
         * number of rows per block, and the number of columns per block in a
         * matrix.
-        * 
+        *
         * @param matrixFormat
         *            The matrix format.
         * @param numRows
@@ -160,7 +160,7 @@ public class MatrixMetadata extends Metadata {
         * number of rows, the number of columns, the number of non-zero 
values, the
         * number of rows per block, and the number of columns per block in a
         * matrix.
-        * 
+        *
         * @param matrixFormat
         *            The matrix format.
         * @param numRows
@@ -187,7 +187,7 @@ public class MatrixMetadata extends Metadata {
        /**
         * Constructor to create a MatrixMetadata object based on the number of 
rows
         * and the number of columns in a matrix.
-        * 
+        *
         * @param numRows
         *            The number of rows in the matrix.
         * @param numColumns
@@ -201,7 +201,7 @@ public class MatrixMetadata extends Metadata {
        /**
         * Constructor to create a MatrixMetadata object based on the number of 
rows
         * and the number of columns in a matrix.
-        * 
+        *
         * @param numRows
         *            The number of rows in the matrix.
         * @param numColumns
@@ -216,7 +216,7 @@ public class MatrixMetadata extends Metadata {
         * Constructor to create a MatrixMetadata object based on the number of
         * rows, the number of columns, and the number of non-zero values in a
         * matrix.
-        * 
+        *
         * @param numRows
         *            The number of rows in the matrix.
         * @param numColumns
@@ -234,7 +234,7 @@ public class MatrixMetadata extends Metadata {
         * Constructor to create a MatrixMetadata object based on the number of
         * rows, the number of columns, and the number of non-zero values in a
         * matrix.
-        * 
+        *
         * @param numRows
         *            The number of rows in the matrix.
         * @param numColumns
@@ -252,7 +252,7 @@ public class MatrixMetadata extends Metadata {
         * Constructor to create a MatrixMetadata object based on the number of
         * rows, the number of columns, the number of rows per block, and the 
number
         * of columns per block in a matrix.
-        * 
+        *
         * @param numRows
         *            The number of rows in the matrix.
         * @param numColumns
@@ -273,7 +273,7 @@ public class MatrixMetadata extends Metadata {
         * Constructor to create a MatrixMetadata object based on the number of
         * rows, the number of columns, the number of rows per block, and the 
number
         * of columns per block in a matrix.
-        * 
+        *
         * @param numRows
         *            The number of rows in the matrix.
         * @param numColumns
@@ -294,7 +294,7 @@ public class MatrixMetadata extends Metadata {
         * Constructor to create a MatrixMetadata object based on the number of
         * rows, the number of columns, the number of non-zero values, the 
number of
         * rows per block, and the number of columns per block in a matrix.
-        * 
+        *
         * @param numRows
         *            The number of rows in the matrix.
         * @param numColumns
@@ -319,7 +319,7 @@ public class MatrixMetadata extends Metadata {
         * Constructor to create a MatrixMetadata object based on the number of
         * rows, the number of columns, the number of non-zero values, the 
number of
         * rows per block, and the number of columns per block in a matrix.
-        * 
+        *
         * @param numRows
         *            The number of rows in the matrix.
         * @param numColumns
@@ -342,7 +342,7 @@ public class MatrixMetadata extends Metadata {
        /**
         * Constructor to create a MatrixMetadata object based on a
         * MatrixCharacteristics object.
-        * 
+        *
         * @param matrixCharacteristics
         *            the matrix metadata as a MatrixCharacteristics object
         */
@@ -356,7 +356,7 @@ public class MatrixMetadata extends Metadata {
 
        /**
         * Set the MatrixMetadata fields based on a MatrixCharacteristics 
object.
-        * 
+        *
         * @param matrixCharacteristics
         *            the matrix metadata as a MatrixCharacteristics object
         */
@@ -370,7 +370,7 @@ public class MatrixMetadata extends Metadata {
 
        /**
         * Obtain the number of rows
-        * 
+        *
         * @return the number of rows
         */
        public Long getNumRows() {
@@ -379,7 +379,7 @@ public class MatrixMetadata extends Metadata {
 
        /**
         * Set the number of rows
-        * 
+        *
         * @param numRows
         *            the number of rows
         */
@@ -389,7 +389,7 @@ public class MatrixMetadata extends Metadata {
 
        /**
         * Obtain the number of columns
-        * 
+        *
         * @return the number of columns
         */
        public Long getNumColumns() {
@@ -398,7 +398,7 @@ public class MatrixMetadata extends Metadata {
 
        /**
         * Set the number of columns
-        * 
+        *
         * @param numColumns
         *            the number of columns
         */
@@ -408,7 +408,7 @@ public class MatrixMetadata extends Metadata {
 
        /**
         * Obtain the number of non-zero values
-        * 
+        *
         * @return the number of non-zero values
         */
        public Long getNumNonZeros() {
@@ -417,7 +417,7 @@ public class MatrixMetadata extends Metadata {
 
        /**
         * Set the number of non-zero values
-        * 
+        *
         * @param numNonZeros
         *            the number of non-zero values
         */
@@ -427,7 +427,7 @@ public class MatrixMetadata extends Metadata {
 
        /**
         * Obtain the number of rows per block
-        * 
+        *
         * @return the number of rows per block
         */
        public Integer getNumRowsPerBlock() {
@@ -436,7 +436,7 @@ public class MatrixMetadata extends Metadata {
 
        /**
         * Set the number of rows per block
-        * 
+        *
         * @param numRowsPerBlock
         *            the number of rows per block
         */
@@ -446,7 +446,7 @@ public class MatrixMetadata extends Metadata {
 
        /**
         * Obtain the number of columns per block
-        * 
+        *
         * @return the number of columns per block
         */
        public Integer getNumColumnsPerBlock() {
@@ -455,7 +455,7 @@ public class MatrixMetadata extends Metadata {
 
        /**
         * Set the number of columns per block
-        * 
+        *
         * @param numColumnsPerBlock
         *            the number of columns per block
         */
@@ -466,7 +466,7 @@ public class MatrixMetadata extends Metadata {
        /**
         * Convert the matrix metadata to a MatrixCharacteristics object. If all
         * field values are {@code null}, {@code null} is returned.
-        * 
+        *
         * @return the matrix metadata as a MatrixCharacteristics object, or
         *         {@code null} if all field values are null
         */
@@ -502,7 +502,7 @@ public class MatrixMetadata extends Metadata {
 
        /**
         * Obtain the matrix format
-        * 
+        *
         * @return the matrix format
         */
        public MatrixFormat getMatrixFormat() {
@@ -511,7 +511,7 @@ public class MatrixMetadata extends Metadata {
 
        /**
         * Set the matrix format
-        * 
+        *
         * @param matrixFormat
         *            the matrix format
         */

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/a712dad8/src/main/java/org/apache/sysml/api/mlcontext/Metadata.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/api/mlcontext/Metadata.java 
b/src/main/java/org/apache/sysml/api/mlcontext/Metadata.java
index c1c0a36..4061b5c 100644
--- a/src/main/java/org/apache/sysml/api/mlcontext/Metadata.java
+++ b/src/main/java/org/apache/sysml/api/mlcontext/Metadata.java
@@ -6,9 +6,9 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/a712dad8/src/main/java/org/apache/sysml/api/mlcontext/ProjectInfo.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/api/mlcontext/ProjectInfo.java 
b/src/main/java/org/apache/sysml/api/mlcontext/ProjectInfo.java
index 7d6163b..9af6696 100644
--- a/src/main/java/org/apache/sysml/api/mlcontext/ProjectInfo.java
+++ b/src/main/java/org/apache/sysml/api/mlcontext/ProjectInfo.java
@@ -6,9 +6,9 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -40,7 +40,7 @@ public class ProjectInfo {
 
        /**
         * Return a ProjectInfo singleton instance.
-        * 
+        *
         * @return the ProjectInfo singleton instance
         */
        public static ProjectInfo getProjectInfo() {
@@ -87,7 +87,7 @@ public class ProjectInfo {
 
        /**
         * Obtain a manifest property value based on the key.
-        * 
+        *
         * @param key
         *            the property key
         * @return the property value
@@ -98,7 +98,7 @@ public class ProjectInfo {
 
        /**
         * Obtain the project version from the manifest.
-        * 
+        *
         * @return the project version
         */
        public String version() {
@@ -107,7 +107,7 @@ public class ProjectInfo {
 
        /**
         * Object the artifact build time from the manifest.
-        * 
+        *
         * @return the artifact build time
         */
        public String buildTime() {
@@ -116,7 +116,7 @@ public class ProjectInfo {
 
        /**
         * Obtain the minimum recommended Spark version from the manifest.
-        * 
+        *
         * @return the minimum recommended Spark version
         */
        public String minimumRecommendedSparkVersion() {
@@ -125,7 +125,7 @@ public class ProjectInfo {
 
        /**
         * Obtain all the properties from the manifest as a sorted map.
-        * 
+        *
         * @return the manifest properties as a sorted map
         */
        public SortedMap<String, String> properties() {

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/a712dad8/src/main/java/org/apache/sysml/api/mlcontext/Script.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/api/mlcontext/Script.java 
b/src/main/java/org/apache/sysml/api/mlcontext/Script.java
index 7b2b475..fb7fc41 100644
--- a/src/main/java/org/apache/sysml/api/mlcontext/Script.java
+++ b/src/main/java/org/apache/sysml/api/mlcontext/Script.java
@@ -342,19 +342,18 @@ public class Script {
                                inputParameters = new LinkedHashMap<String, 
Object>();
                        }
                        inputParameters.put(name, value);
-               } 
-               else {
+               } else {
                        Data data = MLContextUtil.convertInputType(name, value, 
metadata);
                        if (data != null) {
-                               //store input variable name and data
+                               // store input variable name and data
                                symbolTable.put(name, data);
                                inputVariables.add(name);
-                               
-                               //store matrix/frame meta data and disable 
variable cleanup
-                               if( data instanceof CacheableData ) {
-                                       if( metadata != null )
+
+                               // store matrix/frame meta data and disable 
variable cleanup
+                               if (data instanceof CacheableData) {
+                                       if (metadata != null)
                                                inputMetadata.put(name, 
metadata);
-                                       
((CacheableData<?>)data).enableCleanup(false);
+                                       ((CacheableData<?>) 
data).enableCleanup(false);
                                }
                        }
                }
@@ -387,7 +386,7 @@ public class Script {
 
        /**
         * Register output variables.
-        * 
+        *
         * @param outputNames
         *            names of the output variables
         * @return {@code this} Script object to allow chaining of methods
@@ -400,7 +399,7 @@ public class Script {
 
        /**
         * Register output variables.
-        * 
+        *
         * @param outputNames
         *            names of the output variables
         * @return {@code this} Script object to allow chaining of methods
@@ -542,7 +541,8 @@ public class Script {
                                        String quotedString = 
MLContextUtil.quotedString((String) inValue);
                                        sb.append(" = " + quotedString + ";\n");
                                } else if (MLContextUtil.isBasicType(inValue)) {
-                                       sb.append(" = read('', 
data_type='scalar', value_type='" + MLContextUtil.getBasicTypeString(inValue) + 
"');\n");
+                                       sb.append(" = read('', 
data_type='scalar', value_type='" + MLContextUtil.getBasicTypeString(inValue)
+                                                       + "');\n");
                                } else if 
(MLContextUtil.doesSymbolTableContainFrameObject(symbolTable, in)) {
                                        sb.append(" = read('', 
data_type='frame');\n");
                                } else {
@@ -553,7 +553,8 @@ public class Script {
                                        String quotedString = 
MLContextUtil.quotedString((String) inValue);
                                        sb.append(" = " + quotedString + "\n");
                                } else if (MLContextUtil.isBasicType(inValue)) {
-                                       sb.append(" = load('', 
data_type='scalar', value_type='" + MLContextUtil.getBasicTypeString(inValue) + 
"')\n");
+                                       sb.append(" = load('', 
data_type='scalar', value_type='" + MLContextUtil.getBasicTypeString(inValue)
+                                                       + "')\n");
                                } else if 
(MLContextUtil.doesSymbolTableContainFrameObject(symbolTable, in)) {
                                        sb.append(" = load('', 
data_type='frame')\n");
                                } else {
@@ -705,7 +706,7 @@ public class Script {
 
        /**
         * Execute the script and return the results as an MLResults object.
-        * 
+        *
         * @return results as an MLResults object
         */
        public MLResults execute() {

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/a712dad8/src/main/java/org/apache/sysml/api/mlcontext/ScriptExecutor.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/api/mlcontext/ScriptExecutor.java 
b/src/main/java/org/apache/sysml/api/mlcontext/ScriptExecutor.java
index 8fa4345..cd884f2 100644
--- a/src/main/java/org/apache/sysml/api/mlcontext/ScriptExecutor.java
+++ b/src/main/java/org/apache/sysml/api/mlcontext/ScriptExecutor.java
@@ -6,9 +6,9 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -94,7 +94,7 @@ import org.apache.sysml.utils.Statistics;
  * flow optimization check by subclassing ScriptExecutor and overriding the
  * globalDataFlowOptimization method.
  * </p>
- * 
+ *
  * <code>ScriptExecutor scriptExecutor = new ScriptExecutor() {
  * <br>&nbsp;&nbsp;// turn off global data flow optimization check
  * <br>&nbsp;&nbsp;@Override
@@ -104,7 +104,7 @@ import org.apache.sysml.utils.Statistics;
  * <br>};
  * <br>ml.execute(script, scriptExecutor);</code>
  * <p>
- * 
+ *
  * For more information, please see the {@link #execute} method.
  */
 public class ScriptExecutor {
@@ -137,7 +137,7 @@ public class ScriptExecutor {
        /**
         * ScriptExecutor constructor, where the configuration properties are 
passed
         * in.
-        * 
+        *
         * @param config
         *            the configuration properties to use by the ScriptExecutor
         */
@@ -181,16 +181,15 @@ public class ScriptExecutor {
         * Output a description of the program to standard output.
         */
        protected void showExplanation() {
-               if( !explain ) return;
-                       
+               if (!explain)
+                       return;
+
                try {
-                       ExplainType explainType = (explainLevel != null) ? 
-                                       explainLevel.getExplainType() : 
ExplainType.RUNTIME;
+                       ExplainType explainType = (explainLevel != null) ? 
explainLevel.getExplainType() : ExplainType.RUNTIME;
                        System.out.println(Explain.explain(dmlProgram, 
runtimeProgram, explainType));
-               } 
-               catch (Exception e) {
+               } catch (Exception e) {
                        throw new MLContextException("Exception occurred while 
explaining dml program", e);
-               } 
+               }
        }
 
        /**
@@ -249,9 +248,9 @@ public class ScriptExecutor {
                if (symbolTable != null) {
                        executionContext.setVariables(symbolTable);
                }
-    
+
        }
-       
+
        /**
         * Set the global flags (for example: statistics, gpu, etc).
         */
@@ -264,9 +263,10 @@ public class ScriptExecutor {
                DMLScript.USE_ACCELERATOR = gpu;
                DMLScript.STATISTICS_COUNT = statisticsMaxHeavyHitters;
        }
-       
+
        /**
-        * Reset the global flags (for example: statistics, gpu, etc) 
post-execution. 
+        * Reset the global flags (for example: statistics, gpu, etc)
+        * post-execution.
         */
        protected void resetGlobalFlags() {
                DMLScript.STATISTICS = oldStatistics;
@@ -278,7 +278,7 @@ public class ScriptExecutor {
        /**
         * Execute a DML or PYDML script. This is broken down into the following
         * primary methods:
-        * 
+        *
         * <ol>
         * <li>{@link #setup(Script)}</li>
         * <li>{@link #parseScript()}</li>
@@ -298,7 +298,7 @@ public class ScriptExecutor {
         * <li>{@link #executeRuntimeProgram()}</li>
         * <li>{@link #cleanupAfterExecution()}</li>
         * </ol>
-        * 
+        *
         * @param script
         *            the DML or PYDML script to execute
         * @return the results as a MLResults object
@@ -320,15 +320,14 @@ public class ScriptExecutor {
                countCompiledMRJobsAndSparkInstructions();
                initializeCachingAndScratchSpace();
                cleanupRuntimeProgram();
-               
+
                try {
                        createAndInitializeExecutionContext();
                        executeRuntimeProgram();
-               }
-               finally {
+               } finally {
                        cleanupAfterExecution();
                }
-               
+
                // add symbol table to MLResults
                MLResults mlResults = new MLResults(script);
                script.setResults(mlResults);
@@ -341,7 +340,7 @@ public class ScriptExecutor {
         * and string, sets the ScriptExecutor in the script, sets the script 
string
         * in the Spark Monitor, globally sets the script type, sets global 
flags,
         * and resets statistics if needed.
-        * 
+        *
         * @param script
         *            the DML or PYDML script to execute
         */
@@ -416,8 +415,9 @@ public class ScriptExecutor {
         * initialize caching, and reset statistics.
         */
        protected void initializeCachingAndScratchSpace() {
-               if( !init ) return;
-               
+               if (!init)
+                       return;
+
                try {
                        DMLScript.initHadoopExecution(config);
                } catch (ParseException e) {
@@ -454,8 +454,8 @@ public class ScriptExecutor {
                try {
                        ParserWrapper parser = 
ParserFactory.createParser(script.getScriptType());
                        Map<String, Object> inputParameters = 
script.getInputParameters();
-                       Map<String, String> inputParametersStringMaps = 
MLContextUtil.convertInputParametersForParser(
-                                       inputParameters, 
script.getScriptType());
+                       Map<String, String> inputParametersStringMaps = 
MLContextUtil
+                                       
.convertInputParametersForParser(inputParameters, script.getScriptType());
 
                        String scriptExecutionString = 
script.getScriptExecutionString();
                        dmlProgram = parser.parse(null, scriptExecutionString, 
inputParametersStringMaps);
@@ -471,11 +471,12 @@ public class ScriptExecutor {
        protected void rewritePersistentReadsAndWrites() {
                LocalVariableMap symbolTable = script.getSymbolTable();
                if (symbolTable != null) {
-                       String[] inputs = (script.getInputVariables() == null) 
? new String[0] : script.getInputVariables()
-                                       .toArray(new String[0]);
+                       String[] inputs = (script.getInputVariables() == null) 
? new String[0]
+                                       : 
script.getInputVariables().toArray(new String[0]);
                        String[] outputs = (script.getOutputVariables() == 
null) ? new String[0]
                                        : 
script.getOutputVariables().toArray(new String[0]);
-                       RewriteRemovePersistentReadWrite rewrite = new 
RewriteRemovePersistentReadWrite(inputs, outputs, script.getSymbolTable());
+                       RewriteRemovePersistentReadWrite rewrite = new 
RewriteRemovePersistentReadWrite(inputs, outputs,
+                                       script.getSymbolTable());
                        ProgramRewriter programRewriter = new 
ProgramRewriter(rewrite);
                        try {
                                
programRewriter.rewriteProgramHopDAGs(dmlProgram);
@@ -490,7 +491,7 @@ public class ScriptExecutor {
 
        /**
         * Set the SystemML configuration properties.
-        * 
+        *
         * @param config
         *            The configuration properties
         */
@@ -549,7 +550,7 @@ public class ScriptExecutor {
 
        /**
         * Obtain the program
-        * 
+        *
         * @return the program
         */
        public DMLProgram getDmlProgram() {
@@ -558,7 +559,7 @@ public class ScriptExecutor {
 
        /**
         * Obtain the translator
-        * 
+        *
         * @return the translator
         */
        public DMLTranslator getDmlTranslator() {
@@ -567,7 +568,7 @@ public class ScriptExecutor {
 
        /**
         * Obtain the runtime program
-        * 
+        *
         * @return the runtime program
         */
        public Program getRuntimeProgram() {
@@ -576,7 +577,7 @@ public class ScriptExecutor {
 
        /**
         * Obtain the execution context
-        * 
+        *
         * @return the execution context
         */
        public ExecutionContext getExecutionContext() {
@@ -585,7 +586,7 @@ public class ScriptExecutor {
 
        /**
         * Obtain the Script object associated with this ScriptExecutor
-        * 
+        *
         * @return the Script object associated with this ScriptExecutor
         */
        public Script getScript() {
@@ -595,7 +596,7 @@ public class ScriptExecutor {
        /**
         * Whether or not an explanation of the DML/PYDML program should be 
output
         * to standard output.
-        * 
+        *
         * @param explain
         *            {@code true} if explanation should be output, {@code 
false}
         *            otherwise
@@ -607,7 +608,7 @@ public class ScriptExecutor {
        /**
         * Whether or not statistics about the DML/PYDML program should be 
output to
         * standard output.
-        * 
+        *
         * @param statistics
         *            {@code true} if statistics should be output, {@code false}
         *            otherwise
@@ -618,8 +619,9 @@ public class ScriptExecutor {
 
        /**
         * Set the maximum number of heavy hitters to display with statistics.
-        * 
-        * @param maxHeavyHitters the maximum number of heavy hitters
+        *
+        * @param maxHeavyHitters
+        *            the maximum number of heavy hitters
         */
        public void setStatisticsMaxHeavyHitters(int maxHeavyHitters) {
                this.statisticsMaxHeavyHitters = maxHeavyHitters;
@@ -628,7 +630,7 @@ public class ScriptExecutor {
        /**
         * Obtain whether or not all values should be maintained in the symbol 
table
         * after execution.
-        * 
+        *
         * @return {@code true} if all values should be maintained in the symbol
         *         table, {@code false} otherwise
         */
@@ -639,7 +641,7 @@ public class ScriptExecutor {
        /**
         * Set whether or not all values should be maintained in the symbol 
table
         * after execution.
-        * 
+        *
         * @param maintainSymbolTable
         *            {@code true} if all values should be maintained in the 
symbol
         *            table, {@code false} otherwise
@@ -649,11 +651,12 @@ public class ScriptExecutor {
        }
 
        /**
-        * Whether or not to initialize the scratch_space, bufferpool, etc. 
Note that any 
-        * redundant initialize (e.g., multiple scripts from one MLContext) 
clears existing 
-        * files from the scratch space and buffer pool.
-        *  
-        * @param init {@code true} if should initialize, {@code false} 
otherwise
+        * Whether or not to initialize the scratch_space, bufferpool, etc. Note
+        * that any redundant initialize (e.g., multiple scripts from one 
MLContext)
+        * clears existing files from the scratch space and buffer pool.
+        *
+        * @param init
+        *            {@code true} if should initialize, {@code false} otherwise
         */
        public void setInit(boolean init) {
                this.init = init;
@@ -662,7 +665,7 @@ public class ScriptExecutor {
        /**
         * Set the level of program explanation that should be displayed if 
explain
         * is set to true.
-        * 
+        *
         * @param explainLevel
         *            the level of program explanation
         */
@@ -678,27 +681,27 @@ public class ScriptExecutor {
 
        /**
         * Whether or not to enable GPU usage.
-        * 
+        *
         * @param enabled
-        *                                      {@code true} if enabled, {@code 
false} otherwise
+        *            {@code true} if enabled, {@code false} otherwise
         */
-    public void setGPU(boolean enabled) {
-        this.gpu = enabled;
-    }
-       
+       public void setGPU(boolean enabled) {
+               this.gpu = enabled;
+       }
+
        /**
         * Whether or not to force GPU usage.
-        * 
+        *
         * @param enabled
-        *                                      {@code true} if enabled, {@code 
false} otherwise
+        *            {@code true} if enabled, {@code false} otherwise
         */
-    public void setForceGPU(boolean enabled) {
-        this.forceGPU = enabled;
-    }
+       public void setForceGPU(boolean enabled) {
+               this.forceGPU = enabled;
+       }
 
        /**
         * Obtain the SystemML configuration properties.
-        * 
+        *
         * @return the configuration properties
         */
        public DMLConfig getConfig() {

http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/a712dad8/src/main/java/org/apache/sysml/api/mlcontext/ScriptType.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/sysml/api/mlcontext/ScriptType.java 
b/src/main/java/org/apache/sysml/api/mlcontext/ScriptType.java
index 94c9057..ee24636 100644
--- a/src/main/java/org/apache/sysml/api/mlcontext/ScriptType.java
+++ b/src/main/java/org/apache/sysml/api/mlcontext/ScriptType.java
@@ -6,9 +6,9 @@
  * to you under the Apache License, Version 2.0 (the
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
- * 
+ *
  *   http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@@ -37,7 +37,7 @@ public enum ScriptType {
 
        /**
         * Obtain script type as a lowercase string ("dml" or "pydml").
-        * 
+        *
         * @return lowercase string representing the script type
         */
        public String lowerCase() {
@@ -46,7 +46,7 @@ public enum ScriptType {
 
        /**
         * Is the script type DML?
-        * 
+        *
         * @return {@code true} if the script type is DML, {@code false} 
otherwise
         */
        public boolean isDML() {
@@ -55,7 +55,7 @@ public enum ScriptType {
 
        /**
         * Is the script type PYDML?
-        * 
+        *
         * @return {@code true} if the script type is PYDML, {@code false} 
otherwise
         */
        public boolean isPYDML() {

Reply via email to