Skip to content

Commit

Permalink
Fixed bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardofroes committed Aug 2, 2022
1 parent f0ecc4d commit 26c9bb4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ plugins {
}

group 'com.github.CST-Group'
version '0.1.6'
version '0.1.7'

sourceCompatibility = 1.11
targetCompatibility = 1.11
sourceCompatibility = 1.8
targetCompatibility = 1.8

repositories {
mavenCentral()
Expand Down Expand Up @@ -59,7 +59,7 @@ publishing {
gpr(MavenPublication) {
groupId = 'com.github.CST-Group'
artifactId = 'ctm'
version = '0.1.6'
version = '0.1.7'

from(components.java)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ public void testGenerateDataFile() throws Exception {
dataSamples.add(new DataSample(x, planMatrixIdea.getMatrix()));
}

int mountByFile = 300;

for (int i = 0; i <dataSamples.size()/mountByFile; i++) {
String json = gson.toJson(dataSamples.subList(i*mountByFile, (i+1) * mountByFile));

FileWriter fileWriter = new FileWriter("./src/test/resources/dataTraining_" + (6+i) + ".json");
BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);

bufferedWriter.write(json);
bufferedWriter.close();
}
// int mountByFile = 300;
//
// for (int i = 0; i <dataSamples.size()/mountByFile; i++) {
// String json = gson.toJson(dataSamples.subList(i*mountByFile, (i+1) * mountByFile));
//
// FileWriter fileWriter = new FileWriter("./src/test/resources/dataTraining_" + (6+i) + ".json");
// BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);
//
// bufferedWriter.write(json);
// bufferedWriter.close();
// }

}

Expand Down

0 comments on commit 26c9bb4

Please sign in to comment.