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
import weka.core.converters.Loader; | |
import weka.core.converters.Saver; | |
import weka.core.converters.ArffLoader; | |
import weka.core.converters.XrffSaver; | |
IPatientService ps = ... //get IPatientService | |
Data d = ... //get Data entity | |
Path pathToArff = locateFile(Data d); | |
Path pathToXML = ... //get it! | |
try(InputStream in = Files.newInputStream(pathToArff); OutputStream out = Files.newOutputStream(pathToXML) { |
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
package de.lmu.ifi.dbs.medmon.medic.core.service; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import java.nio.file.Path; | |
import java.util.Map; | |
public interface IReportingService { | |
//TODO Maybe one more parameter to determine if the report should be rendered as html, pdf, etc |
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
//Copied from ShouldMatchers and Matchers | |
private object ShouldMethodHelper { | |
def shouldMatcher[T](left: T, rightMatcher: Matcher[T]) { | |
rightMatcher(left) match { | |
case MatchResult(false, failureMessage, _, _, _) => throw newOverridenTestFailedException(failureMessage) | |
case _ => () | |
} | |
} | |
} |
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
1;person;Lars;Vogel;10;20; | |
2;person;Marcel;Bruch;10;22; | |
3;person;Martin;Odersky;11;21; | |
4;person;Jonas;Boner;11;21; | |
5;person;Victor;Klang;11;21; | |
10;company;vogella; | |
11;company;typesafe; | |
20;group;android; | |
21;group;scala; | |
22;group;eclipse; |
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
/** | |
* @see http://www.eclipsezone.com/eclipse/forums/t116172.html | |
*/ | |
public void addPluginDependency(String plugin, String version, boolean reexport, boolean overwrite) throws BundleException { | |
String requireBundleHeader = "Require-Bundle"; | |
String bundleVersionAttr = "bundle-version"; | |
String rexportDirective = "visibility"; | |
Manifest manifest = new Manifest(); | |
assert (plugin != null); |
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
mvn install:install-file -DgroupId=com.typesafe.akka -DartifactId=akka-actor -Dversion=2.1-SNAPSHOT -Dpackaging=jar -Dfile=/home/muki/Development/target_platform/typesafe/akka/akka-actor/target/akka-actor-2.1-SNAPSHOT.jar | |
mvn install:install-file -DgroupId=com.typesafe.akka -DartifactId=akka-osgi -Dversion=2.1-SNAPSHOT -Dpackaging=jar -Dfile=/home/muki/Development/target_platform/typesafe/akka/akka-osgi/target/akka-osgi-2.1-SNAPSHOT.jar | |
mvn install:install-file -DgroupId=com.typesafe.akka -DartifactId=akka-osgi-aries -Dversion=2.1-SNAPSHOT -Dpackaging=jar -Dfile=/home/muki/Development/target_platform/typesafe/akka/akka-osgi-aries/target/akka-osgi-aries-2.1-SNAPSHOT.jar | |
mvn install:install-file -DgroupId=com.typesafe.akka -DartifactId=akka-akka-slf4j -Dversion=2.1-SNAPSHOT -Dpackaging=jar -Dfile=/home/muki/Development/target_platform/typesafe/akka/akka-akka-slf4j/target/akka-osgi-2.1-SNAPSHOT.jar |
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
<plugin> | |
<groupId>org.eclipse.tycho</groupId> | |
<artifactId>tycho-packaging-plugin</artifactId> | |
<version>${tycho.version}</version> | |
<dependencies> | |
<dependency> | |
<groupId>org.eclipse.tycho.extras</groupId> | |
<artifactId>tycho-buildtimestamp-jgit</artifactId> | |
<version>${tycho.version}</version> |
Hi,
I'm trying to create integration tests for the akka project (akka/akka#589) with Pax Exam. However I got stuck. I will post the three options I tried and the errors I get in each. You can try this on your own, pulling this repository: https://github.com/muuki88/akka and run:
> sbt
> test-only akka.osgi.test.LocalActorTest
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
package de.mukis; | |
import java.text.DecimalFormat; | |
import java.text.NumberFormat; | |
/** | |
* Generates all possibilities for a coinflip. | |
* | |
* @author muki | |
* |
OlderNewer