- Install java on your machine. Personally, I use
jabba, a java version manager. Feel free to use your system package manager if desired (e.g.apt,brew, oryumto install the appropriate version) - Fork and check out your own copy of the Presto GitHub repository
- Fork the repo: https://github.com/prestodb/presto/fork
git clone [email protected]:<your-username>/presto.git - Compile the main portion of the codebase
- We use Apache Maven to build the code. It is invoked through the
./mvnwscript in the root of the repository.
- We use Apache Maven to build the code. It is invoked through the
This file contains hidden or 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 alluxio; | |
| import static org.junit.Assert.assertEquals; | |
| import static org.junit.Assert.assertNotEquals; | |
| import java.util.Arrays; | |
| import java.util.HashMap; | |
| import java.util.List; | |
| import java.util.Map; |
HPC clusters typically don't have great support for long-running clusters, thus information from the cluster and UI are short-lived. It also makes it more difficult to monitor Spark jobs without the UI.
All you have to do is use SSH to configure a proxy and tell firefox (or your preferred browser) to use that tunnel as a proxy.
This file contains hidden or 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 unittest | |
| import numpy as np | |
| import fbpca | |
| from scipy.linalg import qr, lu | |
| class FBPCATest(unittest.TestCase): | |
| def test1(self): | |
| a = np.matrix([ | |
| [1, 5, 10, 1, 18], |
This file contains hidden or 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
| class Graph { | |
| Neighbor[] adjList; // Vertices represented as integers | |
| public boolean hasPath(int u, int v) { // assume u, v are in range | |
| } | |
| public ArrayList < Integer > getPath(int u, int v) { // assume u, v are in range | |
| } | |
| } | |
| class Neighbor { | |
| int vertex; | |
| Neighbor next; |
This file contains hidden or 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.util.ArrayList; | |
| public class BTree<T extends Comparable<T>> { | |
| public static void main (String[] args) { | |
| printScoreReport(test()); | |
| // You can write more code to test your methods under here. | |
| } |
This file contains hidden or 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 io.blanco; | |
| import java.util.NoSuchElementException; | |
| public class List<T extends Comparable<T>> { | |
| private Node<T> head; | |
| private int size; | |
| public int size() { |
This file contains hidden or 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.util.*; | |
| public class myclass { | |
| static boolean recursion_proper = false; | |
| static int original_input = 123123123; | |
| static int recursion_count = 0; | |
| public static void main(String[] args) { | |
| System.out.println("Hello, World!"); | |
| DecToBin(Integer.parseInt(args[0])); |
This file contains hidden or 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 search; | |
| import java.io.*; | |
| import java.util.*; | |
| public class LSETester { | |
| public static void main(String[] args) throws FileNotFoundException { | |
| LittleSearchEngine lse = new LittleSearchEngine(); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder