View gist:8937398
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
diff --git a/xpcom/threads/nsTimerImpl.cpp b/xpcom/threads/nsTimerImpl.cpp | |
--- a/xpcom/threads/nsTimerImpl.cpp | |
+++ b/xpcom/threads/nsTimerImpl.cpp | |
@@ -9,16 +9,19 @@ | |
#include "nsAutoPtr.h" | |
#include "nsThreadManager.h" | |
#include "nsThreadUtils.h" | |
#include "plarena.h" | |
#include "pratom.h" | |
#include "GeckoProfiler.h" |
View predictor.py
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 matplotlib as mp | |
import matplotlib.pylab | |
import numpy | |
import sys | |
import simplejson as json | |
from scipy import stats | |
from urllib.request import urlopen | |
sample_unit = None |
View mainthreadio.R
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
# Exploratory analysis hackjob for Mainthread-IO data | |
library(data.table) | |
library(ggplot2) | |
library(doMC) | |
registerDoMC(8) | |
############################################################ | |
# High frequency files analysis | |
############################################################ |
View forecast.R
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
library(forecast) | |
library(ggplot2) | |
library(dplyr) | |
predictions = as.factor(read.csv('results.csv')$Prediction) | |
levels(predictions) <- c("ok", "drop") | |
submissions <- read.csv('submissions.csv')$Submissions | |
submissions <- msts(submissions, seasonal.periods=c(24, 7*24), ts.frequency=24) |
View gist:b7ff051a1a122330288d
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
{ | |
"metadata": { | |
"name": "" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
View addons.py
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 json | |
def map(k, d, v, cx): | |
j = json.loads(v) | |
try: | |
addons = j['info']['addons'] | |
except: | |
return |
View filter.json
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
{ | |
"version": 1, | |
"dimensions": [ | |
{ | |
"field_name": "reason", | |
"allowed_values": ["saved-session"] | |
}, | |
{ | |
"field_name": "appName", | |
"allowed_values": "Firefox" |
View gist:e2c13df2edbf07482192
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
# HG changeset patch | |
# Parent a4dcfbebcb588b9893900152eb512c3810880d68 | |
# User Roberto A. Vitillo <rvitillo@mozilla.com> | |
Bug 559505 - localstore.rdf kills ponies; r=enn | |
diff --git a/b2g/installer/package-manifest.in b/b2g/installer/package-manifest.in | |
--- a/b2g/installer/package-manifest.in | |
+++ b/b2g/installer/package-manifest.in | |
@@ -290,16 +290,17 @@ | |
@BINPATH@/components/shellservice.xpt |
View addon-startup.R
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
library(dplyr) | |
library(reshape) | |
library(doMC) | |
library(caret) | |
trim.leading <- function (x) sub("^\\s+", "", x) | |
trim.trailing <- function (x) sub("\\s+$", "", x) | |
trim <- function (x) gsub("^\\s+|\\s+$", "", x) | |
registerDoMC(8) |
View Bayes101.py
This file has been truncated, but you can view the full file.
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
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:081b9937ad2575f1768d01c339462ad704226fa0c6551d14934aad2abf212241" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
OlderNewer