summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--predPy/templates/layout.html38
-rw-r--r--src/input/ARFFReader.java18
-rw-r--r--src/predictor/ClassifierAdapter.java18
-rw-r--r--src/predictor/PredictorFactory.java18
-rw-r--r--src/predictor/PredictorInterface.java18
5 files changed, 110 insertions, 0 deletions
diff --git a/predPy/templates/layout.html b/predPy/templates/layout.html
new file mode 100644
index 0000000..a06e5ae
--- /dev/null
+++ b/predPy/templates/layout.html
@@ -0,0 +1,38 @@
+$def with (content)
+
+<html>
+ <head>
+ <title>Failure Prediction</title>
+
+ <link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css'>
+ <link href='http://fonts.googleapis.com/css?family=Oleo+Script' rel='stylesheet' type='text/css'>
+
+ <style>
+ body {
+ margin-top: 60px;
+ }
+
+ h2 {
+ font: 200 30px/1.3 Helvetica, sans-serif;
+ color: #2b2b2b;
+ }
+
+ .input-box {
+ width: 600px;
+ line-height: 29px;
+ }
+</style>
+</head>
+
+<body>
+ <div class="container">
+ <div class="jumbotron">
+ <div class="row">
+ $:content
+ </div>
+ </div>
+ </div>
+
+</body>
+
+</html>
diff --git a/src/input/ARFFReader.java b/src/input/ARFFReader.java
index 13fbf38..9357d08 100644
--- a/src/input/ARFFReader.java
+++ b/src/input/ARFFReader.java
@@ -1,3 +1,21 @@
+/**
+Copyright 2016 Huawei Technologies Co. Ltd.
+
+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 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 KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+**/
package input;
import java.io.File;
diff --git a/src/predictor/ClassifierAdapter.java b/src/predictor/ClassifierAdapter.java
index 79dab7e..39338c5 100644
--- a/src/predictor/ClassifierAdapter.java
+++ b/src/predictor/ClassifierAdapter.java
@@ -1,3 +1,21 @@
+/**
+Copyright 2016 Huawei Technologies Co. Ltd.
+
+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 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 KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+**/
package predictor;
import java.util.Random;
diff --git a/src/predictor/PredictorFactory.java b/src/predictor/PredictorFactory.java
index af21b10..db600dd 100644
--- a/src/predictor/PredictorFactory.java
+++ b/src/predictor/PredictorFactory.java
@@ -1,3 +1,21 @@
+/**
+Copyright 2016 Huawei Technologies Co. Ltd.
+
+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 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 KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+**/
package predictor;
import org.apache.log4j.*;
diff --git a/src/predictor/PredictorInterface.java b/src/predictor/PredictorInterface.java
index 03b9052..45c455e 100644
--- a/src/predictor/PredictorInterface.java
+++ b/src/predictor/PredictorInterface.java
@@ -1,3 +1,21 @@
+/**
+Copyright 2016 Huawei Technologies Co. Ltd.
+
+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 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 KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+**/
package predictor;
import java.util.Random;