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
#include <stdio.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <sys/event.h> | |
#include <fcntl.h> | |
#include <err.h> | |
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
"main@1" prio=5 tid=0x1 nid=NA runnable | |
java.lang.Thread.State: RUNNABLE | |
at com.kenai.jffi.Foreign.invokeL6(Foreign.java:-1) | |
at com.kenai.jffi.Invoker.invokeL6(Invoker.java:455) | |
at jnr.enxio.channels.Native$LibC$jnr$ffi$2.kevent(Unknown Source:-1) | |
at jnr.enxio.channels.KQSelector.poll(KQSelector.java:168) | |
at jnr.enxio.channels.KQSelector.select(KQSelector.java:148) | |
at org.jruby.RubyThread.select(RubyThread.java:1883) | |
- locked <0x1886> (a java.lang.Object) | |
at org.jruby.RubyThread.select(RubyThread.java:1804) |
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
public void antlr() { | |
long start = System.currentTimeMillis(); | |
CharStream charStream = CharStreams.fromString(input); | |
Lexer lexer = new SameOccurrenceLexer(charStream); | |
CommonTokenStream stream = new CommonTokenStream(lexer); | |
SameOccurrenceParser parser = new SameOccurrenceParser(stream); | |
parser.addParseListener(new SameOccurrenceParseListener()); | |
parser.getInterpreter().setPredictionMode(PredictionMode.LL); | |
parser.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
import pandas as pd | |
import numpy as np | |
import xgboost as xgb | |
import matplotlib.pyplot as plt | |
class Instacart: | |
def __init__(self): | |
pd.set_option("display.width", 1000) | |
def file_path(self, file_name): |
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
/usr/bin/java | |
-Xms256m | |
-Xmx3500m | |
-Xss128k | |
-XX:+UseParNewGC | |
-XX:+UseConcMarkSweepGC | |
-XX:+CMSParallelRemarkEnabled | |
-XX:SurvivorRatio=8 | |
-XX:MaxTenuringThreshold=1 |