This file contains hidden or 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
[info] CGAlgorithmBenchmark: | |
[info] - [scaliper] CGAlgorithmBenchmarks *** FAILED *** | |
[info] java.lang.Exception: An exception was thrown from the benchmark code. | |
[info] at scaliper.CaliperRunner$.run(CaliperRunner.scala:46) | |
[info] at scaliper.CaliperRunner$.run(CaliperRunner.scala:9) | |
[info] at scaliper.BenchmarkContext$$anonfun$endGroup$1.apply$mcV$sp(Benchmarks.scala:32) | |
[info] at scaliper.BenchmarkContext$$anonfun$endGroup$1.apply(Benchmarks.scala:32) | |
[info] at scaliper.BenchmarkContext$$anonfun$endGroup$1.apply(Benchmarks.scala:32) | |
[info] at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22) | |
[info] at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85) |
This file contains hidden or 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
scala> case class Tx[T](tag: T, value: Int) | |
defined class Tx | |
scala> Tx(1, 1) | |
res0: Tx[Int] = Tx(1,1) | |
scala> res0.copy(tag = "one") | |
res1: Tx[String] = Tx(one,1) |
This file contains hidden or 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
use std::io::prelude::*; | |
use std::fs::File; | |
fn main() { | |
let mut f = File::create("hello_world.txt").unwrap(); | |
f.write_all(b"Hello world!"); | |
let mut f = File::open("hello_world.txt").unwrap(); | |
let mut s = String::new(); | |
f.read_to_string(&mut s); | |
assert_eq!(s, "Hello world!"); |
This file contains hidden or 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
------------------------------------------------------------------------------- | |
Test set: org.geogit.test.integration.HooksTest | |
------------------------------------------------------------------------------- | |
Tests run: 4, Failures: 1, Errors: 2, Skipped: 0, Time elapsed: 1.802 sec <<< FAILURE! | |
testHookWithError(org.geogit.test.integration.HooksTest) Time elapsed: 1.338 sec <<< ERROR! | |
java.lang.NullPointerException | |
at org.geogit.api.hooks.Scripting.executeScript(Scripting.java:71) | |
at org.geogit.api.hooks.CommandCallInterceptor.runHook(CommandCallInterceptor.java:48) | |
at org.geogit.api.hooks.CommandCallInterceptor.invoke(CommandCallInterceptor.java:32) | |
at org.geogit.test.integration.HooksTest.testHookWithError(HooksTest.java:35) |
This file contains hidden or 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
-startup | |
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar | |
--launcher.library | |
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130521-0416 | |
-product | |
org.eclipse.epp.package.standard.product | |
--launcher.defaultAction | |
openFile | |
-showsplash | |
org.eclipse.platform |
This file contains hidden or 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
* { | |
/* "defaults;" these properties may be overridden by more specific rules */ | |
label: [PROPERTY]; | |
label-anchor: 0 1; | |
} | |
[ANCHOR_PT IN (1, 3, 6)] { | |
label-anchor: 0 0; | |
} |
This file contains hidden or 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
* { | |
label: [LABEL]; | |
label-anchor: 0 [ | |
if_then_else(in3(ANCHOR_PT, 0, 3, 6), | |
0, | |
if_then_else(in3(ANCHOR_PT, 1, 4, 7), | |
0.5, | |
1))] | |
} |
This file contains hidden or 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
[INFO] Scanning for projects... | |
[WARNING] | |
[WARNING] Some problems were encountered while building the effective model for org.geogit:geogit-core:jar:0.4-SNAPSHOT | |
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-resources-plugin is missing. @ org.geogit:geogit:0.4-SNAPSHOT, /home/dwins/Projects/GeoGit/src/parent/pom.xml, line 329, column 15 | |
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:cobertura-maven-plugin is missing. @ org.geogit:geogit:0.4-SNAPSHOT, /home/dwins/Projects/GeoGit/src/parent/pom.xml, line 353, column 15 | |
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ org.geogit:geogit:0.4-SNAPSHOT, /home/dwins/Projects/GeoGit/src/parent/pom.xml, line 319, column 15 | |
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ org.geogit:geogit:0.4-SNAPSHOT, /home/dwins/Projects/GeoGit/src/parent/pom.xml, line 294, column 15 | |
[WARNING] 'build.plugins.plugin.version' f |
This file contains hidden or 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
object Predicates { | |
type Pred[-T] = (T => Boolean) | |
implicitly[Seq[Int] >:> List[Int]] | |
implicitly[Pred[Seq[Int]] <:< Pred[List[Int]]] // predicate of seq is a subtype of predicate of list | |
val hasLength3: Pred[Seq[Int]] = _.size == 3 | |
hasLength3(Vector(1,2,3)) // we can pass any seq to hasLength3 | |
hasLength3(List(1,2,3)) |
NewerOlder