apply google-java-style indentation and impose import orders....

This commit is contained in:
CodingCat
2016-03-03 09:32:23 -05:00
parent 0f367a6ade
commit e3dc67c6a0
17 changed files with 36 additions and 46 deletions

View File

@@ -15,11 +15,11 @@
*/
package ml.dmlc.xgboost4j;
import java.io.IOException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.io.IOException;
/**
* DMatrix for xgboost.
*

View File

@@ -15,11 +15,11 @@
*/
package ml.dmlc.xgboost4j;
import java.io.IOException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.io.IOException;
/**
* Error handle for Xgboost.
*/

View File

@@ -15,14 +15,13 @@
*/
package ml.dmlc.xgboost4j;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.io.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* Booster for xgboost, similar to the python wrapper xgboost.py

View File

@@ -15,12 +15,12 @@
*/
package ml.dmlc.xgboost4j;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.io.*;
import java.lang.reflect.Field;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* class to load native library
*

View File

@@ -1,9 +1,10 @@
package ml.dmlc.xgboost4j;
import java.io.IOException;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.util.Map;
import java.io.IOException;
/**
* Rabit global class for synchronization.

View File

@@ -15,11 +15,10 @@
*/
package ml.dmlc.xgboost4j;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import java.util.*;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* trainer for xgboost

View File

@@ -19,7 +19,7 @@ package ml.dmlc.xgboost4j.scala
import scala.collection.JavaConverters._
import scala.collection.mutable
import ml.dmlc.xgboost4j.{Booster => JBooster, IEvaluation, IObjective}
import ml.dmlc.xgboost4j.{Booster => JBooster}
private[scala] class ScalaBoosterImpl private[xgboost4j](booster: JBooster) extends Booster {

View File

@@ -16,7 +16,8 @@
package ml.dmlc.xgboost4j.scala
import _root_.scala.collection.JavaConverters._
import scala.collection.JavaConverters._
import ml.dmlc.xgboost4j.{XGBoost => JXGBoost}
object XGBoost {

View File

@@ -15,13 +15,14 @@
*/
package ml.dmlc.xgboost4j;
import java.util.HashMap;
import java.util.Map;
import junit.framework.TestCase;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Test;
import java.util.*;
/**
* test cases for Booster
*

View File

@@ -15,12 +15,12 @@
*/
package ml.dmlc.xgboost4j;
import junit.framework.TestCase;
import org.junit.Test;
import java.util.Arrays;
import java.util.Random;
import junit.framework.TestCase;
import org.junit.Test;
/**
* test cases for DMatrix
*