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
from __future__ import print_function | |
import os | |
import sys | |
import argparse | |
import re | |
from collections import defaultdict | |
sourceexts = ['.c', '.cpp', '.h', '.hpp', '.cc'] |
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/python | |
import os, sys | |
import heapq | |
class ExternalSorter(object): | |
CHUNK_SIZE = 10*1000*1000 | |
CHUNK_FILE_NAME = "chunks/chunk.%.5i.txt" | |
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
<html> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script> | |
<script type="text/javascript"> | |
function compare(a, b) { | |
if (a.text() < b.text()) return -1; | |
if (a.text() > b.text()) return 1; | |
return 0; | |
} | |
function sortArray(a) { |