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
fatal: unable to connect to git.qemu-project.org: | |
git.qemu-project.org[0: (my ip address)]: errno=Connection refused | |
firewall may be blocking outbound git:// protocol | |
override with a variety of scopes: | |
git config --global url."https://".insteadOf git:// | |
git config --global url.https://github.com/.insteadOf git://github.com/ | |
git config --global url.https://git.qemu.org/git/.insteadOf git://git.qemu-project.org/ | |
git config --global url.https://anongit.freedesktop.org/git/.insteadOf git://anongit.freedesktop.org/ |
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 math | |
from text.blob import TextBlob as tb | |
def tf(word, blob): | |
return blob.words.count(word) / len(blob.words) | |
def n_containing(word, bloblist): | |
return sum(1 for blob in bloblist if word in blob) | |
def idf(word, bloblist): |