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 akka.actor.ActorSystem | |
import akka.http.scaladsl.Http | |
import akka.http.scaladsl.model.HttpEntity | |
import akka.http.scaladsl.server.Directives._ | |
import akka.stream.ActorMaterializer | |
class TestWebServer(testSystem: ActorSystem){ | |
implicit val system = testSystem | |
implicit val materialize = ActorMaterializer() |
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 com.dvMENTALmadness | |
import akka.actor.ActorSystem | |
import akka.stream.ActorMaterializer | |
import akka.http.scaladsl.Http | |
import akka.http.scaladsl.model._ | |
import scala.concurrent.Await | |
import scala.concurrent.ExecutionContext.Implicits.global | |
import scala.concurrent.duration._ |
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 com.dvMENTALmadness | |
import akka.actor.ActorSystem | |
import slick.driver.PostgresDriver.api._ | |
import scala.collection.immutable.Stream._ | |
import scala.concurrent.duration._ | |
import scala.concurrent.{Future, Await} | |
import akka.stream._ | |
import akka.stream.scaladsl._ |
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 com.dvMENTALmadness | |
import akka.actor.ActorSystem | |
import slick.driver.PostgresDriver.api._ | |
import scala.concurrent.duration._ | |
import scala.concurrent.Await | |
import akka.stream._ | |
import akka.stream.scaladsl._ | |
import scala.concurrent.ExecutionContext.Implicits.global |
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
using System; | |
using System.Collections.Generic; | |
using System.Reflection; | |
using System.Reflection.Emit; | |
using System.ComponentModel; | |
using System.Threading; | |
namespace DevelopmentalMadness.Utility | |
{ | |
/// <summary> |
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
using CommonDomain; | |
using CommonDomain.Core; | |
using Microsoft.Practices.Unity; | |
using NEventStore; | |
using NEventStore.Dispatcher; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; |
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
using Microsoft.Hadoop.MapReduce; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace RestaurantUserMapper | |
{ | |
class Program |
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
using System; | |
namespace WeightedSetSelection | |
{ | |
public class WalkerAlias | |
{ | |
Random random; | |
public int N; public double[] ff; public int[] aliasTable; | |
public WalkerAlias(int N, double[] pp) // pp=probability vector |
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
using System; | |
using System.Collections.Generic; | |
namespace WeightedSetSelection | |
{ | |
/// <summary> | |
/// Creates a table by duplicating entries propotionate to | |
/// their weight. When samples are requested they will be | |
/// selected randomly according to weight. | |
/// </summary> |
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
------------------------------------------------------------------------------- | |
Test set: com.tamingtext.classifier.bayes.ExtractTrainingDataTest | |
------------------------------------------------------------------------------- | |
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.722 sec <<< FAILURE! | |
testExtract(com.tamingtext.classifier.bayes.ExtractTrainingDataTest) Time elapsed: 0.41 sec <<< ERROR! | |
java.io.IOException: Failed to set permissions of path: \tmp\hadoop-MMiller\mapred\staging\MMiller-1897775905\.staging to 0700 | |
at org.apache.hadoop.fs.FileUtil.checkReturnValue(FileUtil.java:680) | |
at org.apache.hadoop.fs.FileUtil.setPermission(FileUtil.java:653) | |
at org.apache.hadoop.fs.RawLocalFileSystem.setPermission(RawLocalFileSystem.java:483) | |
at org.apache.hadoop.fs.RawLocalFileSystem.mkdirs(RawLocalFileSystem.java:318) |
NewerOlder