Skip to content

Commit c5cc4c0

Browse files
committed
[MINOR] Added licenses for DDCLZWSchemeMC/SC and renamed assertLosslessCompression_NoRepetition to assertLosslessCompressionNoRepetition in order to pass codestyle test.
1 parent a8cedd3 commit c5cc4c0

File tree

4 files changed

+40
-3
lines changed

4 files changed

+40
-3
lines changed

src/main/java/org/apache/sysds/runtime/compress/colgroup/ColGroupDDCLZW.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ int next() {
322322
}
323323
}
324324

325-
326325
/**
327326
* Builds a packed 64-bit key from a prefix code and a next symbol, typically used in an LZW dictionary.
328327
*

src/main/java/org/apache/sysds/runtime/compress/colgroup/scheme/DDCLZWSchemeMC.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
120
package org.apache.sysds.runtime.compress.colgroup.scheme;
221

322
import org.apache.sysds.runtime.compress.DMLCompressionException;

src/main/java/org/apache/sysds/runtime/compress/colgroup/scheme/DDCLZWSchemeSC.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
120
package org.apache.sysds.runtime.compress.colgroup.scheme;
221

322
import org.apache.sysds.runtime.compress.DMLCompressionException;

src/test/java/org/apache/sysds/test/component/compress/colgroup/ColGroupDDCLZWTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ public void testRepetitiveData() {
410410
assertLosslessCompression(ddc);
411411
}
412412

413-
public void assertLosslessCompression_NoRepetition(ColGroupDDCLZW original, int nRows) {
413+
public void assertLosslessCompressionNoRepetition(ColGroupDDCLZW original, int nRows) {
414414
AColGroup decompressed = original.convertToDDC();
415415
assertNotNull(decompressed);
416416
assertTrue(decompressed instanceof ColGroupDDC);
@@ -439,7 +439,7 @@ public void testNoRepetition() {
439439
assertNotNull(cg);
440440
assertTrue(cg instanceof ColGroupDDCLZW);
441441

442-
assertLosslessCompression_NoRepetition((ColGroupDDCLZW) cg, 20);
442+
assertLosslessCompressionNoRepetition((ColGroupDDCLZW) cg, 20);
443443
}
444444

445445
public void testDecompressToDenseBlock(double[][] data, boolean isTransposed) {

0 commit comments

Comments
 (0)