You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lens.apache.org by jd...@apache.org on 2015/01/27 09:31:50 UTC

[3/3] incubator-lens git commit: LENS-230 Clean up license headers (Amareshwari via jdhok)

LENS-230 Clean up license headers (Amareshwari via jdhok)


Project: http://git-wip-us.apache.org/repos/asf/incubator-lens/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-lens/commit/e4bed725
Tree: http://git-wip-us.apache.org/repos/asf/incubator-lens/tree/e4bed725
Diff: http://git-wip-us.apache.org/repos/asf/incubator-lens/diff/e4bed725

Branch: refs/heads/master
Commit: e4bed7256970d50b59e8bf5c6922d65f2ab57759
Parents: f73ee7c
Author: jdhok <ja...@inmobi.com>
Authored: Tue Jan 27 14:01:34 2015 +0530
Committer: jdhok <ja...@inmobi.com>
Committed: Tue Jan 27 14:01:34 2015 +0530

----------------------------------------------------------------------
 .gitignore                                      | 25 +++++-
 checkstyle/src/main/resources/suppressions.xml  | 17 ++++
 .../apache/lens/cli/TestLensQueryCommands.java  |  2 +-
 lens-cli/src/test/resources/data.data           |  1 +
 lens-cli/src/test/resources/data.txt            |  1 -
 lens-client-dist/src/deb/client/control         | 18 ++++
 .../src/main/assembly/client-dist.xml           |  2 +-
 lens-dist/src/deb/control/control               | 18 ++++
 .../apache/lens/driver/hive/TestHiveDriver.java |  4 +-
 .../lens/driver/hive/TestRemoteHiveDriver.java  |  2 +-
 .../src/test/resources/priority_tests.data      |  4 +
 .../src/test/resources/priority_tests.txt       |  4 -
 lens-driver-hive/testdata/testdata1.data        |  5 ++
 lens-driver-hive/testdata/testdata1.txt         |  5 --
 lens-driver-hive/testdata/testdata2.data        |  5 ++
 lens-driver-hive/testdata/testdata2.txt         |  5 --
 .../org/apache/lens/examples/SampleQueries.java |  4 +-
 .../src/main/resources/cube-queries.sql         | 87 ++++++++++++++++++++
 .../src/main/resources/cube-queries.txt         | 68 ---------------
 .../src/main/resources/dimension-queries.sql    | 71 ++++++++++++++++
 .../src/main/resources/dimension-queries.txt    | 52 ------------
 .../main/webapp/static/css/codemirror.min.css   | 18 ----
 .../webapp/static/js/libs/codemirror.min.js     | 18 ----
 .../main/webapp/static/js/libs/jquery.flot.js   | 18 ----
 .../src/main/webapp/static/js/libs/moment.js    | 18 ----
 .../src/main/webapp/static/js/libs/sql.js       | 18 ----
 .../webapp/static/js/libs/stupidtable.min.js    | 18 ----
 .../apache/lens/server/TestServerRestart.java   |  6 +-
 .../lens/server/query/TestQueryService.java     |  2 +-
 .../lens/server/query/TestResultFormatting.java |  2 +-
 .../lens/server/user/TestUserConfigLoader.java  |  2 +-
 .../src/test/resources/user/propertybased.data  |  4 +
 .../src/test/resources/user/propertybased.txt   |  4 -
 lens-server/testdata/testdata2.data             |  5 ++
 lens-server/testdata/testdata2.txt              |  5 --
 pom.xml                                         | 35 ++++----
 36 files changed, 292 insertions(+), 281 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/e4bed725/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index 86109a2..d0fa424 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,20 @@
+#
+# 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.
+#
+
 #java specific
 *.class
 query_logs/
@@ -19,12 +36,18 @@ query_logs/
 *.iws
 *.ipr
 
+# patch files
+*.patch
+*.diff
+*.log
+
 # Mac
 .DS_Store
 
-# Maven
+# Build
 log/
 target/
+build/
 
 #testng
 test-output/

http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/e4bed725/checkstyle/src/main/resources/suppressions.xml
----------------------------------------------------------------------
diff --git a/checkstyle/src/main/resources/suppressions.xml b/checkstyle/src/main/resources/suppressions.xml
index 6a30a76..06c49af 100644
--- a/checkstyle/src/main/resources/suppressions.xml
+++ b/checkstyle/src/main/resources/suppressions.xml
@@ -1,4 +1,21 @@
 <?xml version="1.0"?>
+<!--
+  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.
+  -->
 
 <!DOCTYPE suppressions PUBLIC
 "-//Puppy Crawl//DTD Suppressions 1.1//EN"

http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/e4bed725/lens-cli/src/test/java/org/apache/lens/cli/TestLensQueryCommands.java
----------------------------------------------------------------------
diff --git a/lens-cli/src/test/java/org/apache/lens/cli/TestLensQueryCommands.java b/lens-cli/src/test/java/org/apache/lens/cli/TestLensQueryCommands.java
index d75cadf..9554673 100644
--- a/lens-cli/src/test/java/org/apache/lens/cli/TestLensQueryCommands.java
+++ b/lens-cli/src/test/java/org/apache/lens/cli/TestLensQueryCommands.java
@@ -279,7 +279,7 @@ public class TestLensQueryCommands extends LensCliApplicationTest {
     TestLensDimensionCommands.createDimension();
     TestLensDimensionTableCommands.addDim1Table("dim_table", "dim_table.xml", "dim_table_storage.xml", "local");
 
-    URL dataFile = TestLensQueryCommands.class.getClassLoader().getResource("data.txt");
+    URL dataFile = TestLensQueryCommands.class.getClassLoader().getResource("data.data");
 
     QueryHandle qh = client.executeQueryAsynch(
         "LOAD DATA LOCAL INPATH '" + new File(dataFile.toURI()).getAbsolutePath()

http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/e4bed725/lens-cli/src/test/resources/data.data
----------------------------------------------------------------------
diff --git a/lens-cli/src/test/resources/data.data b/lens-cli/src/test/resources/data.data
new file mode 100644
index 0000000..6c99c9a
--- /dev/null
+++ b/lens-cli/src/test/resources/data.data
@@ -0,0 +1 @@
+1,first,this is one,11

http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/e4bed725/lens-cli/src/test/resources/data.txt
----------------------------------------------------------------------
diff --git a/lens-cli/src/test/resources/data.txt b/lens-cli/src/test/resources/data.txt
deleted file mode 100644
index 6c99c9a..0000000
--- a/lens-cli/src/test/resources/data.txt
+++ /dev/null
@@ -1 +0,0 @@
-1,first,this is one,11

http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/e4bed725/lens-client-dist/src/deb/client/control
----------------------------------------------------------------------
diff --git a/lens-client-dist/src/deb/client/control b/lens-client-dist/src/deb/client/control
index 75aa60a..ae71018 100644
--- a/lens-client-dist/src/deb/client/control
+++ b/lens-client-dist/src/deb/client/control
@@ -1,3 +1,21 @@
+#
+# 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: lens-client
 Version: [[project.version]] 
 Section:  misc

http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/e4bed725/lens-client-dist/src/main/assembly/client-dist.xml
----------------------------------------------------------------------
diff --git a/lens-client-dist/src/main/assembly/client-dist.xml b/lens-client-dist/src/main/assembly/client-dist.xml
index 8190720..b12d3c9 100644
--- a/lens-client-dist/src/main/assembly/client-dist.xml
+++ b/lens-client-dist/src/main/assembly/client-dist.xml
@@ -230,7 +230,7 @@
       <directory>../lens-examples/src/main/resources/</directory>
       <outputDirectory>/examples/queries</outputDirectory>
       <includes>
-        <include>*.txt</include>
+        <include>*.sql</include>
       </includes>
     </fileSet>
 

http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/e4bed725/lens-dist/src/deb/control/control
----------------------------------------------------------------------
diff --git a/lens-dist/src/deb/control/control b/lens-dist/src/deb/control/control
index 9b0b028..483f888 100644
--- a/lens-dist/src/deb/control/control
+++ b/lens-dist/src/deb/control/control
@@ -1,3 +1,21 @@
+#
+# 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: lens-server
 Version: [[project.version]] 
 Section:  misc

http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/e4bed725/lens-driver-hive/src/test/java/org/apache/lens/driver/hive/TestHiveDriver.java
----------------------------------------------------------------------
diff --git a/lens-driver-hive/src/test/java/org/apache/lens/driver/hive/TestHiveDriver.java b/lens-driver-hive/src/test/java/org/apache/lens/driver/hive/TestHiveDriver.java
index 648d227..cc2fe0d 100644
--- a/lens-driver-hive/src/test/java/org/apache/lens/driver/hive/TestHiveDriver.java
+++ b/lens-driver-hive/src/test/java/org/apache/lens/driver/hive/TestHiveDriver.java
@@ -60,7 +60,7 @@ import org.testng.annotations.Test;
 public class TestHiveDriver {
 
   /** The Constant TEST_DATA_FILE. */
-  public static final String TEST_DATA_FILE = "testdata/testdata1.txt";
+  public static final String TEST_DATA_FILE = "testdata/testdata1.data";
 
   /** The test output dir. */
   public final String TEST_OUTPUT_DIR = "target/" + this.getClass().getSimpleName() + "/test-output";
@@ -805,7 +805,7 @@ public class TestHiveDriver {
       HiveDriver.HOURLY_PARTITION_WEIGHT_DEFAULT
     );
     BufferedReader br = new BufferedReader(new InputStreamReader(
-      TestHiveDriver.class.getResourceAsStream("/priority_tests.txt")));
+      TestHiveDriver.class.getResourceAsStream("/priority_tests.data")));
     String line;
     while((line = br.readLine()) != null) {
       String[] kv = line.split("\\s*:\\s*");

http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/e4bed725/lens-driver-hive/src/test/java/org/apache/lens/driver/hive/TestRemoteHiveDriver.java
----------------------------------------------------------------------
diff --git a/lens-driver-hive/src/test/java/org/apache/lens/driver/hive/TestRemoteHiveDriver.java b/lens-driver-hive/src/test/java/org/apache/lens/driver/hive/TestRemoteHiveDriver.java
index 26202d7..2fe7a06 100644
--- a/lens-driver-hive/src/test/java/org/apache/lens/driver/hive/TestRemoteHiveDriver.java
+++ b/lens-driver-hive/src/test/java/org/apache/lens/driver/hive/TestRemoteHiveDriver.java
@@ -385,7 +385,7 @@ public class TestRemoteHiveDriver extends TestHiveDriver {
       partDir.mkdir();
 
       // Create data file
-      File data = new File(partDir, "data.txt");
+      File data = new File(partDir, "data.data");
       FileUtils.writeLines(data, Arrays.asList("one", "two", "three", "four", "five"));
 
       System.out.println("@@ Adding partition " + i);

http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/e4bed725/lens-driver-hive/src/test/resources/priority_tests.data
----------------------------------------------------------------------
diff --git a/lens-driver-hive/src/test/resources/priority_tests.data b/lens-driver-hive/src/test/resources/priority_tests.data
new file mode 100644
index 0000000..230df95
--- /dev/null
+++ b/lens-driver-hive/src/test/resources/priority_tests.data
@@ -0,0 +1,4 @@
+dt 2014-01-02-01: VERY_HIGH
+dt 2013-12,2014-01-01, dt 2014-01-02-00, dt 2014-01-02-01: HIGH
+dt 2013-12,2014-01, dt 2014-02, dt 2014-02-01-00: NORMAL
+dt 2013-12,2014-01, dt 2014-02, dt 2014-03, dt 2014-04, dt 2014-05: LOW
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/e4bed725/lens-driver-hive/src/test/resources/priority_tests.txt
----------------------------------------------------------------------
diff --git a/lens-driver-hive/src/test/resources/priority_tests.txt b/lens-driver-hive/src/test/resources/priority_tests.txt
deleted file mode 100644
index 230df95..0000000
--- a/lens-driver-hive/src/test/resources/priority_tests.txt
+++ /dev/null
@@ -1,4 +0,0 @@
-dt 2014-01-02-01: VERY_HIGH
-dt 2013-12,2014-01-01, dt 2014-01-02-00, dt 2014-01-02-01: HIGH
-dt 2013-12,2014-01, dt 2014-02, dt 2014-02-01-00: NORMAL
-dt 2013-12,2014-01, dt 2014-02, dt 2014-03, dt 2014-04, dt 2014-05: LOW
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/e4bed725/lens-driver-hive/testdata/testdata1.data
----------------------------------------------------------------------
diff --git a/lens-driver-hive/testdata/testdata1.data b/lens-driver-hive/testdata/testdata1.data
new file mode 100644
index 0000000..da9dfd0
--- /dev/null
+++ b/lens-driver-hive/testdata/testdata1.data
@@ -0,0 +1,5 @@
+one
+two
+three
+four
+five
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/e4bed725/lens-driver-hive/testdata/testdata1.txt
----------------------------------------------------------------------
diff --git a/lens-driver-hive/testdata/testdata1.txt b/lens-driver-hive/testdata/testdata1.txt
deleted file mode 100644
index da9dfd0..0000000
--- a/lens-driver-hive/testdata/testdata1.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-one
-two
-three
-four
-five
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/e4bed725/lens-driver-hive/testdata/testdata2.data
----------------------------------------------------------------------
diff --git a/lens-driver-hive/testdata/testdata2.data b/lens-driver-hive/testdata/testdata2.data
new file mode 100644
index 0000000..f251809
--- /dev/null
+++ b/lens-driver-hive/testdata/testdata2.data
@@ -0,0 +1,5 @@
+1one
+two
+3\N
+\N
+5

http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/e4bed725/lens-driver-hive/testdata/testdata2.txt
----------------------------------------------------------------------
diff --git a/lens-driver-hive/testdata/testdata2.txt b/lens-driver-hive/testdata/testdata2.txt
deleted file mode 100644
index f251809..0000000
--- a/lens-driver-hive/testdata/testdata2.txt
+++ /dev/null
@@ -1,5 +0,0 @@
-1one
-two
-3\N
-\N
-5

http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/e4bed725/lens-examples/src/main/java/org/apache/lens/examples/SampleQueries.java
----------------------------------------------------------------------
diff --git a/lens-examples/src/main/java/org/apache/lens/examples/SampleQueries.java b/lens-examples/src/main/java/org/apache/lens/examples/SampleQueries.java
index 1f7635e..5cea347 100644
--- a/lens-examples/src/main/java/org/apache/lens/examples/SampleQueries.java
+++ b/lens-examples/src/main/java/org/apache/lens/examples/SampleQueries.java
@@ -98,8 +98,8 @@ public class SampleQueries {
    *           Signals that an I/O exception has occurred.
    */
   public void queryAll() throws IOException {
-    runQueries("dimension-queries.txt");
-    runQueries("cube-queries.txt");
+    runQueries("dimension-queries.sql");
+    runQueries("cube-queries.sql");
     System.out.println("Successful queries " + success + " out of " + total + "queries");
   }
 

http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/e4bed725/lens-examples/src/main/resources/cube-queries.sql
----------------------------------------------------------------------
diff --git a/lens-examples/src/main/resources/cube-queries.sql b/lens-examples/src/main/resources/cube-queries.sql
new file mode 100644
index 0000000..8fee5a8
--- /dev/null
+++ b/lens-examples/src/main/resources/cube-queries.sql
@@ -0,0 +1,87 @@
+--
+-- 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.
+--
+
+cube select measure2 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00')
+cube select measure2 from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00')
+cube select measure2 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01')
+cube select dim1, measure2 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00')
+cube select dim1, measure2 from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00')
+cube select dim1, measure2 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01')
+cube select dim3, measure3 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00')
+cube select dim3, measure3 from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00')
+cube select dim3, measure3 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01')
+cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00')
+cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00')
+cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01')
+cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00') order by sample_dim.name
+cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00') order by sample_dim.name
+cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01') order by sample_dim.name
+cube select sample_dim.name, measure3 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00') and sample_dim.name != "first"
+cube select sample_dim.name, measure3 from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00') and sample_dim.name != "first"
+cube select sample_dim.name, measure3 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01') and sample_dim.name != "first"
+cube select sample_dim.name, measure2 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00') and sample_dim.name != "first" order by sample_dim.name
+cube select sample_dim.name, measure2 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00') and sample_dim.name != "first" order by sample_dim.name desc
+cube select sample_dim.name, measure2 from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00') and sample_dim.name != "first" order by sample_dim.name
+cube select sample_dim.name, measure2 from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00') and sample_dim.name != "first" order by sample_dim.name desc
+cube select sample_dim.name, measure2 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01') and sample_dim.name != "first" order by sample_dim.name
+cube select sample_dim.name, measure2 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01') and sample_dim.name != "first" order by sample_dim.name desc
+cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00') order by sample_dim.name limit 2
+cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00') order by sample_dim.name limit 2
+cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01') order by sample_dim.name limit 2
+cube select sample_dim.name, measure3 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00') and sample_dim.name != "first" limit 2
+cube select sample_dim.name, measure3 from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00') and sample_dim.name != "first" limit 2
+cube select sample_dim.name, measure3 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01') and sample_dim.name != "first" limit 2
+cube select sample_dim.name, measure2 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00') and sample_dim.name != "first" order by sample_dim.name limit 2
+cube select sample_dim.name, measure2 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00') and sample_dim.name != "first" order by sample_dim.name desc limit 2
+cube select sample_dim.name, measure2 from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00') and sample_dim.name != "first" order by sample_dim.name limit 2
+cube select sample_dim.name, measure2 from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00') and sample_dim.name != "first" order by sample_dim.name desc limit 2
+cube select sample_dim.name, measure2 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01') and sample_dim.name != "first" order by sample_dim.name limit 2
+cube select sample_dim.name, measure2 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01') and sample_dim.name != "first" order by sample_dim.name desc limit 2
+cube select dim1, dim2, measure1, measure2 from sample_cube where time_range_in(dt, '2014-06-25-20', '2014-06-26-02')
+cube select dim1, dim2, measure1, measure2 from sample_cube where time_range_in(dt, '2014-06-25-20', '2014-06-26-02') order by dim2
+cube select dim1, dim2, measure1, measure2 from sample_cube where time_range_in(dt, '2014-06-25-20', '2014-06-26-02') order by dim2 desc
+cube select dim1, dim2, measure1, measure2 from sample_cube where time_range_in(dt, '2014-06-25-20', '2014-06-26-02') limit 2
+cube select dim1, dim2, measure1, measure2 from sample_cube where time_range_in(dt, '2014-06-25-20', '2014-06-26-02') order by dim2 limit 2
+cube select dim1, dim2, measure1, measure2 from sample_cube where time_range_in(dt, '2014-06-25-20', '2014-06-26-02') order by dim2 desc limit 2
+cube select dim1, avg(measure2) from sample_cube where time_range_in(dt, '2014-06-25-20', '2014-06-26-02')
+cube select dim3, min(measure3) from sample_cube where time_range_in(dt, '2014-06-25-20', '2014-06-26-02')
+cube select dim1, sum(measure2) from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00')
+cube select dim1, sum(measure2)from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00')
+cube select dim1, sum(measure2) from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01')
+cube select dim3, max(measure3) from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00')
+cube select dim3, max(measure3) from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00')
+cube select dim3, max(measure3) from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01')
+cube select sample_dim.name, measure4 from sample_cube join sample_dim where time_range_in(dt, '2014-06-24-23', '2014-06-25-00')
+cube select sample_dim.name, measure4 from sample_cube left outer join sample_dim where time_range_in(dt, '2014-06-25-00', '2014-06-26-00')
+cube select sample_dim.name, measure4 from sample_cube right outer join sample_dim where time_range_in(dt, '2014-06-24-23', '2014-06-26-01')
+cube select sample_dim.name, measure4 from sample_cube full outer join sample_dim where time_range_in(dt, '2014-06-24-23', '2014-06-26-01')
+select * from (cube select sample_dim.name, measure4 from sample_cube join sample_dim where time_range_in(dt, '2014-06-24-23', '2014-06-25-00') ) a
+drop table temp1
+create table temp1 as cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00')
+select * from temp1
+insert overwrite local directory '/tmp/example-cube-output' cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00')
+insert overwrite local directory '/tmp/example-cube-output2' ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' WITH SERDEPROPERTIES ('serialization.null.format'='-NA-','field.delim'=','  ) STORED AS TEXTFILE cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00')
+drop table temp2
+create table temp2(name string, msr4 float)
+insert overwrite table temp2 cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00')
+select * from temp2
+drop table temp3
+create table temp3(name string, msr4 float) ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' WITH SERDEPROPERTIES ('serialization.null.format'='-NA-','field.delim'=','  ) STORED AS TEXTFILE
+insert overwrite table temp3 cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00')
+select * from temp3

http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/e4bed725/lens-examples/src/main/resources/cube-queries.txt
----------------------------------------------------------------------
diff --git a/lens-examples/src/main/resources/cube-queries.txt b/lens-examples/src/main/resources/cube-queries.txt
deleted file mode 100644
index 43b2d06..0000000
--- a/lens-examples/src/main/resources/cube-queries.txt
+++ /dev/null
@@ -1,68 +0,0 @@
-cube select measure2 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00')
-cube select measure2 from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00')
-cube select measure2 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01')
-cube select dim1, measure2 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00')
-cube select dim1, measure2 from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00')
-cube select dim1, measure2 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01')
-cube select dim3, measure3 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00')
-cube select dim3, measure3 from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00')
-cube select dim3, measure3 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01')
-cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00')
-cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00')
-cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01')
-cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00') order by sample_dim.name
-cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00') order by sample_dim.name
-cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01') order by sample_dim.name
-cube select sample_dim.name, measure3 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00') and sample_dim.name != "first"
-cube select sample_dim.name, measure3 from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00') and sample_dim.name != "first"
-cube select sample_dim.name, measure3 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01') and sample_dim.name != "first"
-cube select sample_dim.name, measure2 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00') and sample_dim.name != "first" order by sample_dim.name
-cube select sample_dim.name, measure2 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00') and sample_dim.name != "first" order by sample_dim.name desc
-cube select sample_dim.name, measure2 from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00') and sample_dim.name != "first" order by sample_dim.name
-cube select sample_dim.name, measure2 from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00') and sample_dim.name != "first" order by sample_dim.name desc
-cube select sample_dim.name, measure2 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01') and sample_dim.name != "first" order by sample_dim.name
-cube select sample_dim.name, measure2 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01') and sample_dim.name != "first" order by sample_dim.name desc
-cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00') order by sample_dim.name limit 2
-cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00') order by sample_dim.name limit 2
-cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01') order by sample_dim.name limit 2
-cube select sample_dim.name, measure3 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00') and sample_dim.name != "first" limit 2
-cube select sample_dim.name, measure3 from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00') and sample_dim.name != "first" limit 2
-cube select sample_dim.name, measure3 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01') and sample_dim.name != "first" limit 2
-cube select sample_dim.name, measure2 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00') and sample_dim.name != "first" order by sample_dim.name limit 2
-cube select sample_dim.name, measure2 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00') and sample_dim.name != "first" order by sample_dim.name desc limit 2
-cube select sample_dim.name, measure2 from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00') and sample_dim.name != "first" order by sample_dim.name limit 2
-cube select sample_dim.name, measure2 from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00') and sample_dim.name != "first" order by sample_dim.name desc limit 2
-cube select sample_dim.name, measure2 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01') and sample_dim.name != "first" order by sample_dim.name limit 2
-cube select sample_dim.name, measure2 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01') and sample_dim.name != "first" order by sample_dim.name desc limit 2
-cube select dim1, dim2, measure1, measure2 from sample_cube where time_range_in(dt, '2014-06-25-20', '2014-06-26-02') 
-cube select dim1, dim2, measure1, measure2 from sample_cube where time_range_in(dt, '2014-06-25-20', '2014-06-26-02') order by dim2 
-cube select dim1, dim2, measure1, measure2 from sample_cube where time_range_in(dt, '2014-06-25-20', '2014-06-26-02') order by dim2 desc
-cube select dim1, dim2, measure1, measure2 from sample_cube where time_range_in(dt, '2014-06-25-20', '2014-06-26-02') limit 2
-cube select dim1, dim2, measure1, measure2 from sample_cube where time_range_in(dt, '2014-06-25-20', '2014-06-26-02') order by dim2 limit 2
-cube select dim1, dim2, measure1, measure2 from sample_cube where time_range_in(dt, '2014-06-25-20', '2014-06-26-02') order by dim2 desc limit 2
-cube select dim1, avg(measure2) from sample_cube where time_range_in(dt, '2014-06-25-20', '2014-06-26-02')
-cube select dim3, min(measure3) from sample_cube where time_range_in(dt, '2014-06-25-20', '2014-06-26-02')
-cube select dim1, sum(measure2) from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00')
-cube select dim1, sum(measure2)from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00')
-cube select dim1, sum(measure2) from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01')
-cube select dim3, max(measure3) from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00')
-cube select dim3, max(measure3) from sample_cube where time_range_in(dt, '2014-06-25-00', '2014-06-26-00')
-cube select dim3, max(measure3) from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-26-01')
-cube select sample_dim.name, measure4 from sample_cube join sample_dim where time_range_in(dt, '2014-06-24-23', '2014-06-25-00') 
-cube select sample_dim.name, measure4 from sample_cube left outer join sample_dim where time_range_in(dt, '2014-06-25-00', '2014-06-26-00') 
-cube select sample_dim.name, measure4 from sample_cube right outer join sample_dim where time_range_in(dt, '2014-06-24-23', '2014-06-26-01') 
-cube select sample_dim.name, measure4 from sample_cube full outer join sample_dim where time_range_in(dt, '2014-06-24-23', '2014-06-26-01')
-select * from (cube select sample_dim.name, measure4 from sample_cube join sample_dim where time_range_in(dt, '2014-06-24-23', '2014-06-25-00') ) a
-drop table temp1
-create table temp1 as cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00')
-select * from temp1
-insert overwrite local directory '/tmp/example-cube-output' cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00')
-insert overwrite local directory '/tmp/example-cube-output2' ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' WITH SERDEPROPERTIES ('serialization.null.format'='-NA-','field.delim'=','  ) STORED AS TEXTFILE cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00')
-drop table temp2
-create table temp2(name string, msr4 float)
-insert overwrite table temp2 cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00')
-select * from temp2
-drop table temp3
-create table temp3(name string, msr4 float) ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' WITH SERDEPROPERTIES ('serialization.null.format'='-NA-','field.delim'=','  ) STORED AS TEXTFILE
-insert overwrite table temp3 cube select sample_dim.name, measure4 from sample_cube where time_range_in(dt, '2014-06-24-23', '2014-06-25-00')
-select * from temp3

http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/e4bed725/lens-examples/src/main/resources/dimension-queries.sql
----------------------------------------------------------------------
diff --git a/lens-examples/src/main/resources/dimension-queries.sql b/lens-examples/src/main/resources/dimension-queries.sql
new file mode 100644
index 0000000..5807336
--- /dev/null
+++ b/lens-examples/src/main/resources/dimension-queries.sql
@@ -0,0 +1,71 @@
+--
+-- 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.
+--
+
+cube select id,name from sample_dim
+cube select id,name from sample_dim where name != 'first'
+cube select id,name from sample_dim order by name
+cube select id,name from sample_dim order by name desc
+cube select id,name from sample_dim where name != 'first' order by name
+cube select id,name from sample_dim where name != 'first' order by name desc
+cube select id,name from sample_dim limit 2
+cube select id,name from sample_dim order by name limit 2
+cube select id,name from sample_dim order by name desc limit 2
+cube select id,name from sample_dim where name != 'first' limit 2
+cube select id,name from sample_dim where name != 'first' order by name limit 2
+cube select id,name from sample_dim where name != 'first' order by name desc limit 2
+cube select count(id) from sample_dim
+cube select count(id) from sample_dim group by name
+cube select count(distinct id) from sample_dim
+cube select sample_dim.name, sample_dim2.name from sample_dim
+cube select sample_dim.name, sample_dim2.name from sample_dim join sample_dim2
+cube select sample_dim.name, sample_dim2.name from sample_dim left outer join sample_dim2
+cube select sample_dim.name, sample_dim2.name from sample_dim right outer join sample_dim2
+cube select sample_dim.name, sample_dim2.name from sample_dim full outer join sample_dim2
+cube select count(id) from sample_dim where name != "first"
+cube select count(distinct id) from sample_dim where name != "first"
+cube select sample_dim.name, sample_dim2.name from sample_dim where sample_dim.name != 'first'
+cube select id,name from sample_db_dim
+cube select id,name from sample_db_dim where name != 'first'
+cube select id,name from sample_db_dim order by name
+cube select id,name from sample_db_dim order by name desc
+cube select id,name from sample_db_dim where name != 'first' order by name
+cube select id,name from sample_db_dim where name != 'first' order by name desc
+cube select id,name from sample_db_dim limit 2
+cube select id,name from sample_db_dim order by name limit 2
+cube select id,name from sample_db_dim order by name desc limit 2
+cube select id,name from sample_db_dim where name != 'first' limit 2
+cube select id,name from sample_db_dim where name != 'first' order by name limit 2
+cube select id,name from sample_db_dim where name != 'first' order by name desc limit 2
+cube select count(id) from sample_db_dim
+cube select count(id) from sample_db_dim group by name
+cube select count(distinct id) from sample_db_dim
+select * from (cube select sample_dim.name name1, sample_dim2.name name2 from sample_dim where sample_dim.name != 'first') a
+drop table temp1
+create table temp1 as cube select id,name from sample_dim
+select * from temp1
+insert overwrite local directory '/tmp/example-output' cube select id,name from sample_dim
+insert overwrite local directory '/tmp/example-output2' ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' WITH SERDEPROPERTIES ('serialization.null.format'='-NA-','field.delim'=','  ) STORED AS TEXTFILE cube select id,name from sample_dim
+drop table temp2
+create table temp2(id int, name string)
+insert overwrite table temp2 cube select id,name from sample_dim
+select * from temp2
+drop table temp3
+create table temp3(id int, name string) ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' WITH SERDEPROPERTIES ('serialization.null.format'='-NA-','field.delim'=','  ) STORED AS TEXTFILE
+insert overwrite table temp3 cube select id,name from sample_dim
+select * from temp3

http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/e4bed725/lens-examples/src/main/resources/dimension-queries.txt
----------------------------------------------------------------------
diff --git a/lens-examples/src/main/resources/dimension-queries.txt b/lens-examples/src/main/resources/dimension-queries.txt
deleted file mode 100644
index 65e93cf..0000000
--- a/lens-examples/src/main/resources/dimension-queries.txt
+++ /dev/null
@@ -1,52 +0,0 @@
-cube select id,name from sample_dim
-cube select id,name from sample_dim where name != 'first'
-cube select id,name from sample_dim order by name
-cube select id,name from sample_dim order by name desc
-cube select id,name from sample_dim where name != 'first' order by name
-cube select id,name from sample_dim where name != 'first' order by name desc
-cube select id,name from sample_dim limit 2
-cube select id,name from sample_dim order by name limit 2
-cube select id,name from sample_dim order by name desc limit 2
-cube select id,name from sample_dim where name != 'first' limit 2
-cube select id,name from sample_dim where name != 'first' order by name limit 2
-cube select id,name from sample_dim where name != 'first' order by name desc limit 2
-cube select count(id) from sample_dim
-cube select count(id) from sample_dim group by name
-cube select count(distinct id) from sample_dim
-cube select sample_dim.name, sample_dim2.name from sample_dim
-cube select sample_dim.name, sample_dim2.name from sample_dim join sample_dim2
-cube select sample_dim.name, sample_dim2.name from sample_dim left outer join sample_dim2
-cube select sample_dim.name, sample_dim2.name from sample_dim right outer join sample_dim2
-cube select sample_dim.name, sample_dim2.name from sample_dim full outer join sample_dim2
-cube select count(id) from sample_dim where name != "first"
-cube select count(distinct id) from sample_dim where name != "first"
-cube select sample_dim.name, sample_dim2.name from sample_dim where sample_dim.name != 'first'
-cube select id,name from sample_db_dim
-cube select id,name from sample_db_dim where name != 'first'
-cube select id,name from sample_db_dim order by name
-cube select id,name from sample_db_dim order by name desc
-cube select id,name from sample_db_dim where name != 'first' order by name
-cube select id,name from sample_db_dim where name != 'first' order by name desc
-cube select id,name from sample_db_dim limit 2
-cube select id,name from sample_db_dim order by name limit 2
-cube select id,name from sample_db_dim order by name desc limit 2
-cube select id,name from sample_db_dim where name != 'first' limit 2
-cube select id,name from sample_db_dim where name != 'first' order by name limit 2
-cube select id,name from sample_db_dim where name != 'first' order by name desc limit 2
-cube select count(id) from sample_db_dim
-cube select count(id) from sample_db_dim group by name
-cube select count(distinct id) from sample_db_dim
-select * from (cube select sample_dim.name name1, sample_dim2.name name2 from sample_dim where sample_dim.name != 'first') a
-drop table temp1
-create table temp1 as cube select id,name from sample_dim
-select * from temp1
-insert overwrite local directory '/tmp/example-output' cube select id,name from sample_dim
-insert overwrite local directory '/tmp/example-output2' ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' WITH SERDEPROPERTIES ('serialization.null.format'='-NA-','field.delim'=','  ) STORED AS TEXTFILE cube select id,name from sample_dim
-drop table temp2
-create table temp2(id int, name string)
-insert overwrite table temp2 cube select id,name from sample_dim
-select * from temp2
-drop table temp3
-create table temp3(id int, name string) ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' WITH SERDEPROPERTIES ('serialization.null.format'='-NA-','field.delim'=','  ) STORED AS TEXTFILE
-insert overwrite table temp3 cube select id,name from sample_dim
-select * from temp3

http://git-wip-us.apache.org/repos/asf/incubator-lens/blob/e4bed725/lens-server/src/main/webapp/static/css/codemirror.min.css
----------------------------------------------------------------------
diff --git a/lens-server/src/main/webapp/static/css/codemirror.min.css b/lens-server/src/main/webapp/static/css/codemirror.min.css
index 6d0eaec..de782c4 100644
--- a/lens-server/src/main/webapp/static/css/codemirror.min.css
+++ b/lens-server/src/main/webapp/static/css/codemirror.min.css
@@ -1,19 +1 @@
-/**
- * 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.
- */
 .CodeMirror{font-family:monospace;height:300px}.CodeMirror-scroll{overflow:auto}.CodeMirror-lines{padding:4px 0}.CodeMirror pre{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror div.CodeMirror-cursor{border-left:1px solid #000}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.CodeMirror.cm-keymap-fat-cursor div.CodeMirror-cursor{width:auto;border:0;background:#7e7}.cm-animate-fat-cursor{width:auto;border:0;-webkit-animation:blink 1.06s steps(1) infinite;-moz-animation:blink 1.06s steps(1) infinite;animation:blink 1.06s steps(1) infinite}@-moz-keyframes blink{0%{background:#7e7}50%{background:0 0}100%{backg
 round:#7e7}}@-webkit-keyframes blink{0%{background:#7e7}50%{background:0 0}100%{background:#7e7}}@keyframes blink{0%{background:#7e7}50%{background:0 0}100%{background:#7e7}}.cm-tab{display:inline-block}.CodeMirror-ruler{border-left:1px solid #ccc;position:absolute}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-hea
 der,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-invalidchar,.cm-s-default .cm-error{color:red}div.CodeMirror span.CodeMirror-matchingbracket{color:#0f0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#f22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{line-height:1;position:relative;overflow:hidden;background:#fff;color:#000}.CodeMirror-scroll{margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:0;position:relative;-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-sizer{position:relative;border-right:30px solid transparent;-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left
 :0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;padding-bottom:30px;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;-moz-box-sizing:content-box;box-sizing:content-box;padding-bottom:30px;margin-bottom:-32px;display:inline-block}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-lines{cursor:text}.CodeMirror pre{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:0 0;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible}.CodeMirror-wrap pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;overflow:auto}.CodeMirror-wrap .CodeMirror-scrol
 l{overflow-x:hidden}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-measure pre{position:static}.CodeMirror div.CodeMirror-cursor{position:absolute;border-right:none;width:0}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:1}.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.cm-searching{background:#ffa;background:rgba(255,255,0,.4)}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}