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
15:01:25,891 INFO [MultipartRequestWrapper] user tried to upload a file that exceeded file-size limitations. | |
org.apache.commons.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (218730654) exceeds the configured maximum (104857600) | |
at org.apache.commons.fileupload.FileUploadBase$FileItemIteratorImpl.<init>(FileUploadBase.java:937) | |
at org.apache.commons.fileupload.FileUploadBase.getItemIterator(FileUploadBase.java:331) | |
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:351) | |
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:310) | |
at org.apache.myfaces.webapp.filter.MultipartRequestWrapper.parseRequest(MultipartRequestWrapper.java:85) | |
at org.apache.myfaces.webapp.filter.MultipartRequestWrapper.getParameter(MultipartRequestWrapper.java:181) | |
at br.ufrn.arq.web.ViewFilter.isAjaxRequest(ViewFilter.java:405) | |
at br.ufrn.arq.web.ViewFilter.doFilter(ViewFilter.java:150) |
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 requests | |
from bs4 import BeautifulSoup | |
import nltk | |
URL = "https://archive.org/stream/TheH.P.LovecraftNovellas/H.P.Lovecraft-TheCaseOfCharlesDexterWard.txt" | |
# https://www.ling.upenn.edu/courses/Fall_2003/ling001/penn_treebank_pos.html | |
PERMITTED_TAGS = set(['NN', 'NNS', 'NNP', 'NNPS']) | |
req = requests.get(URL) | |
soup = BeautifulSoup(req.text) |
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
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" charset="utf-8"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var dataset = [5,2,4,7,9,1,0,3,8,6,77,91,-2,39,201]; |
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
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" charset="utf-8"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var dataset = [5,2,4,7,9,1,0,3,8,6]; |
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
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" charset="utf-8"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var dataset = []; |
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
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" charset="utf-8"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var dataset = [177, 52, 16, 86, 93, 59, 117, 99, 115, 42, 12, 190, 75, | |
47, 20, 102, 140, 7, 62, 140, 197, 164, 136, 161, 180, 142, |
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
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" charset="utf-8"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var dataset = [177, 52, 16, 86, 93, 59, 117, 99, 115, 42, 12, 190, 75, | |
47, 20, 102, 140, 7, 62, 140, 197, 164, 136, 161, 180, 142, |
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
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" charset="utf-8"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var dataset = [177, 52, 16, 86, 93, 59, 117, 99, 115, 42, 12, 190, 75, | |
47, 20, 102, 140, 7, 62, 140, 197, 164, 136, 161, 180, 142, |
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
<html> | |
<head> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" charset="utf-8"></script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
var dataset = [177, 52, 16, 86, 93, 59, 117, 99, 115, 42, 12, 190, 75, | |
47, 20, 102, 140, 7, 62, 140, 197, 164, 136, 161, 180, 142, |
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 re | |
import sys | |
if __name__ == '__main__': | |
filepath = sys.argv[1] | |
f = open(filepath) | |
c = re.compile(r'R\$ (.*)$') |