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
final String json = gson.toJson(o); | |
final StringBuilder pretty = new StringBuilder(); | |
String indent = ""; | |
char p = '\b'; | |
boolean in = false; | |
for (final char c : json.toCharArray()) { | |
if (c == '"') { | |
in = !in; | |
} |
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.uprizer.sensearray; | |
import java.util.HashSet; | |
import java.util.List; | |
import java.util.Map; | |
import java.util.Set; | |
import com.google.gson.JsonParseException; | |
import com.uprizer.sensearray.io.api.resources.RecommendResource; | |
import com.uprizer.sensearray.tools.JsonVerifiable; |
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
{ | |
"algorithm" : "control", | |
"scenario" : { | |
"agent" : 1234, | |
"campaign" : 245 | |
} | |
"outcome" : 0 | |
} |
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
SenseArray diagnostics: | |
API response times during last 10 minutes (ms): | |
Mean: 14.0 | |
Min: 0.0 | |
Max: 210.0 | |
StdDev: 15.9 | |
Recs per second: 11.133333333333333 | |
lastRecommendRequest: |
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
Process: PDFpen [80139] | |
Path: /Volumes/Hard disk Clone/Users/ian/Applications/PDFpen.app/Contents/MacOS/PDFpen | |
Identifier: com.smileonmymac.PDFpen | |
Version: 4.0.3 (4.0.3) | |
Code Type: X86 (Native) | |
Parent Process: launchd [375] | |
Interval Since Last Report: 3913340 sec | |
Crashes Since Last Report: -340 | |
Per-App Interval Since Last Report: 91613 sec |
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
{ | |
"scenario":{ | |
"npanxx":"713569", | |
"rptBuyer":"0", | |
"session_id":"157988137", | |
"stationCode":"E!", | |
"callTime":"2009-10-06-16-26-41", | |
"rptCaller":"0", | |
"dow":"3", | |
"offer":"1-6636/teaser/39.99" |
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
{ | |
"key" : "item", | |
"name" : "offer", | |
"options" : [ | |
{ | |
"choices" : {"1" : 28.99, "2" : 57.98, "3" : 86.97, "4" : 115.96, "6" : 173.94}, | |
"name" : "52354" | |
}, | |
{ | |
"choices" : { |
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 java.io.File; | |
import java.io.IOException; | |
import java.io.PrintWriter; | |
import java.io.StringWriter; | |
import java.util.*; | |
import java.util.Map.Entry; | |
import com.google.gson.*; | |
import com.uprizer.sensearray.RecommendationPoolConfig; |
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
#!/bin/bash | |
# A simple script which will name a tab in iTerm | |
# usage: | |
# $ nametab New tab name | |
echo -ne "\033]0;"$@"\007" |
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
09-10-30 20:50:30 INFO : Main : Arguments: -dir z:\doubleding -predictorType CLICK_IMPRESSION -probeOn customer-id -min1Outcomes 0 -limitClickHistoryToAlg sensearray -minSerializeInterval 600 -forceRetrain -detailGammaDebug | |
09-10-30 20:50:30 INFO : Main : Loaded exclude tags : [] | |
09-10-30 20:50:31 INFO : Main : Identified item key: offer-id | |
09-10-30 20:50:31 INFO : Main : Running in Master mode | |
09-10-30 20:50:31 INFO : Main : Deserializing Predictor from z:\doubleding\predictor.dat | |
09-10-30 20:50:32 INFO : Main : Starting API listening on port 9998 | |
09-10-30 20:50:32 INFO : ClickImpressionPredictorTrainer : Starting training... | |
09-10-30 20:50:32 INFO : ClickImpressionPredictorTrainer : last clickCF train Fri Oct 30 20:44:28 GMT 2009 ,last convCF train : Fri Oct 30 20:44:28 GMT 2009 | |
09-10-30 20:50:32 INFO : ClickImpressionPredictorTrainer : Retraining conv predictor | |
09-10-30 20:50:32 INFO : GammaPredictor : Initial mean and tag survey |