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 <limits> | |
#include <cmath> | |
#include <cassert> | |
#include <iostream> | |
class LogDensity | |
{ | |
double zeros_ = 0; | |
// Cannot be -Inf. Can be +Inf. |
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/python3 | |
import sys | |
import re | |
from parsy import regex, string, success, generate | |
def newick_quote(s): | |
newick_quote_level = 0 | |
if " " in s: | |
newick_quote_level = 1 |
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/python3 | |
import requests | |
import time | |
from threading import Thread | |
machine='http://localhost:1984' | |
# machine='https://ot39.opentreeoflife.org' | |
# machine='https://api.opentreeoflife.org' |