-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolved bugs (mostly in TSC) (#154)
* Resolved bugs (mostly in TSC) * Removed crazy copies of WEKA classifiers * removed a vulnerability (just to trigger the CI) * test whether CI is triggered * trigger CI * trigger CI * resolved code smell * Resolved several code smells and removed RandomRegressionTree * resolved code smells
- Loading branch information
Showing
91 changed files
with
1,743 additions
and
6,410 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
JAICore/jaicore-basic/src/main/java/ai/libs/jaicore/basic/sets/Pair.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
package ai.libs.jaicore.basic.sets; | ||
|
||
public class Pair<X,Y> { | ||
private X x; | ||
private Y y; | ||
|
||
public Pair(final X x, final Y y) { | ||
super(); | ||
this.x = x; | ||
this.y = y; | ||
} | ||
|
||
public X getX() { | ||
return this.x; | ||
} | ||
|
||
public Y getY() { | ||
return this.y; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "<" + this.x + ", " + this.y + ">"; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
final int prime = 31; | ||
int result = 1; | ||
result = prime * result + ((this.x == null) ? 0 : this.x.hashCode()); | ||
result = prime * result + ((this.y == null) ? 0 : this.y.hashCode()); | ||
return result; | ||
} | ||
|
||
@Override | ||
public boolean equals(final Object obj) { | ||
if (this == obj) { | ||
return true; | ||
} | ||
if (obj == null) { | ||
return false; | ||
} | ||
if (this.getClass() != obj.getClass()) { | ||
return false; | ||
} | ||
@SuppressWarnings("unchecked") | ||
Pair<X, Y> other = (Pair<X, Y>) obj; | ||
if (this.x == null) { | ||
if (other.x != null) { | ||
return false; | ||
} | ||
} else if (!this.x.equals(other.x)) { | ||
return false; | ||
} | ||
if (this.y == null) { | ||
if (other.y != null) { | ||
return false; | ||
} | ||
} else if (!this.y.equals(other.y)) { | ||
return false; | ||
} | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.