Skip to content

Instantly share code, notes, and snippets.

* installing *source* package 'Matrix' ...
** package 'Matrix' successfully unpacked and MD5 sums checked
** libs
make[3]: Entering directory `/state/partition1/tmp/RtmpCw7v7G/R.INSTALL3227fa892a3/Matrix/src'
mpicc -I/home/tbarik/src/R-3.1.1/include -DNDEBUG -DNTIMER -I./SuiteSparse_config -I/usr/local/incl ude -fpic -I/home/tbarik/include -c CHMfactor.c -o CHMfactor.o
In file included from CHMfactor.h:4,
from CHMfactor.c:2:
Mutils.h: In function 'inv_permutation':
Mutils.h:270: error: 'for' loop initial declaration used outside C99 mode
In file included from Mutils.h:374,
[1] "Round: 1 Selected: 2815 Coverage: 0.221589110477999 Delta: 0.221589110477999"
[1] "Round: 2 Selected: 4509 Coverage: 0.39696106362773 Delta: 0.175371953149731"
[1] "Round: 3 Selected: 4211 Coverage: 0.503640392529281 Delta: 0.106679328901551"
[1] "Round: 4 Selected: 699 Coverage: 0.581513137068693 Delta: 0.0778727445394113"
[1] "Round: 5 Selected: 77 Coverage: 0.645932257043368 Delta: 0.0644191199746755"
[1] "Round: 6 Selected: 1739 Coverage: 0.685501741057297 Delta: 0.0395694840139285"
[1] "Round: 7 Selected: 1144 Coverage: 0.723013611902501 Delta: 0.0375118708452041"
[1] "Round: 8 Selected: 1380 Coverage: 0.754985754985755 Delta: 0.0319721430832541"
[1] "Round: 9 Selected: 5434 Coverage: 0.776828110161443 Delta: 0.0218423551756886"
[1] "Round: 10 Selected: 304 Coverage: 0.794238683127572 Delta: 0.0174105729661286"
@barik
barik / gist:23e0a05d6b84ebebcc11
Created August 26, 2014 03:29
Enron Sample Coverage
[1] "Computing similarity matrix... This may take a while, please be patient. 2014-08-25 20:28:20"
[1] "Computing similarity matrix... Done 2014-08-25 20:28:36"
[1] "Finding next projects... This may take a while, please be patient. 2014-08-25 20:28:36"
[1] "Found 1 projects. New score 0.623298512187401 2014-08-25 20:28:43"
[1] "Found 2 projects. New score 0.690091801202912 2014-08-25 20:28:43"
[1] "Found 3 projects. New score 0.733776511554289 2014-08-25 20:28:44"
[1] "Found 4 projects. New score 0.764165875276986 2014-08-25 20:28:45"
[1] "Found 5 projects. New score 0.787749287749288 2014-08-25 20:28:45"
[1] "Found 6 projects. New score 0.809275087052865 2014-08-25 20:28:46"
[1] "Found 7 projects. New score 0.828110161443495 2014-08-25 20:28:46"
@barik
barik / gist:9264676
Created February 28, 2014 03:32
Grammar
def p_exp_int(p):
'exp : INT'
p[0] = ast.Num(p[1], p.lineno(1))
def p_exp_bool_true(p):
'exp : TRUE'
p[0] = ast.Bool(True, p.lineno(1))
def p_exp_bool_false(p):
'exp : FALSE'
@barik
barik / gist:9264636
Last active August 29, 2015 13:56
AST Example
class BinOp(Node):
def __init__(self, left, op, right, lineno):
self.op = op
self.left = left
self.right = right
self.lineno = lineno
def __str__(self):
return 'BinOp({0}, {1}, {2})'.format(self.op, self.left, self.right)
class Foo {
class Inner {}
Inner r = new<String> Inner();
}
@barik
barik / gist:8303188
Created January 7, 2014 17:38
Emacs LaTeX Output for latexmk under Windows/MikTeX [TeX-show-compilation]
Running `LatexMk' on `hello' with ``latexmk "hello.tex"''
Latexmk: This is Latexmk, John Collins, 10 Nov 2013, version: 4.39.
**** Report bugs etc to John Collins <collins at phys.psu.edu>. ****
Rule 'pdflatex': File changes, etc:
Changed files, or newly in use since previous run(s):
'hello.tex'
------------
Run number 1 of rule 'pdflatex'
------------
------------
@barik
barik / gist:8172843
Created December 29, 2013 17:48
Windows Update Issue
2013-12-29 12:47:12:923 952 408 AU Triggering AU detection through DetectNow API
2013-12-29 12:47:12:923 952 408 AU Additional Service {117CAB2D-82B1-4B5A-A08C-4D62DBEE7782} with Approval type {Scheduled} added to AU services list
2013-12-29 12:47:12:924 952 408 AU Triggering Online detection (interactive)
2013-12-29 12:47:12:924 952 b40 AU #############
2013-12-29 12:47:12:924 952 b40 AU ## START ## AU: Search for updates
2013-12-29 12:47:12:924 952 b40 AU #########
2013-12-29 12:47:12:924 952 b40 AU Additional Service {117CAB2D-82B1-4B5A-A08C-4D62DBEE7782} with Approval type {Scheduled} added to AU services list
2013-12-29 12:47:12:925 952 b40 IdleTmr WU operation (CSearchCall::Init ID 15) started; operation # 123; does use network; is not at background priority
2013-12-29 12:47:12:925 952 b40 IdleTmr Incremented PDC RefCount for Network to 1
2013-12-29 12:47:12:925 952 b40 IdleTmr Incremented idle timer priority operation counter to 2
Erasure.java:7: error: name clash: m(Erasure<Integer>) in B and m(Erasure<String>) in A have the same erasure, yet neith
er hides the other
static void m(Erasure<Integer> l) {}
^
1 error
NameClashSameErasureNoOverride1.java:37: error: name clash: m(Integer) in NameClashSameErasureNoOverride1.B overrides a
method whose erasure is the same as another method, yet neither overrides the other
public void m(Integer l) {}
^
first method: m(Object) in NameClashSameErasureNoOverride1.A
second method: m(X) in I
where X is a type-variable:
X extends Object declared in interface I
1 error