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
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>br.edu.ufam.brun0xff</groupId> | |
| <artifactId>projeto1</artifactId> | |
| <version>1.0-SNAPSHOT</version> | |
| <packaging>jar</packaging> | |
| <name>projeto1</name> |
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
| /** | |
| * Bespin: reference implementations of "big data" algorithms | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
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
| //aloca.h | |
| #ifndef ALOCA_H | |
| #define ALOCA_H | |
| #define BESTFIT 0 | |
| #define FIRSTFIT 1 | |
| #define NEXTFIT 2 | |
| //TAMANHO MÁXIMO DE ALOCACAO: 65535 (maior unsigned short) |
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
| #include <iostream> | |
| #include "aloca.h" | |
| using namespace std; | |
| meualoc::meualoc(int tamanhoMemoria,int politicaMem) | |
| { | |
| memoria = (char *) malloc(sizeof(char) * tamanhoMemoria); | |
| this->politicaMem = politicaMem; |
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
| #include <iostream> | |
| using namespace std; | |
| void setUnsignedShortIntToChar(char * mm, unsigned short n) | |
| { | |
| /* | |
| Pega 8 bits menos significativos de n e coloca nos menos | |
| significativos de low8bits preenchendo os mais significativos | |
| de low8bits com 0000 0000 |
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
| //aloca.h | |
| #ifndef ALOCA_H | |
| #define ALOCA_H | |
| #define FIRSTFIT 0 | |
| #define BESTFIT 1 | |
| #define NEXTFIT 2 | |
| #define MAGIC_NUMBER 61616 |
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
| #include <iostream> | |
| #include "aloca.h" | |
| using namespace std; | |
| /* | |
| Anda na lista de livres e checa se o bloco à esquerda do ~ponteiro ta livre, | |
| retorna ponteiro pro node na lista de livres caso esteja livre, e retorna | |
| NULL caso contrario |
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
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| code = """ | |
| \""" this is a comment \""" | |
| #comment one | |
| \""" this is another fucking comment \""" | |
| a = 4 | |
| b = 2 | |
| \""" now im gonna to test my code \""" |
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
| #!/usr/bin/python | |
| # -*- coding: utf-8 -*- | |
| from nltk.tag import StanfordPOSTagger | |
| from nltk.tokenize import word_tokenize | |
| model = '/<PATH>/stanford-postagger-full-2016-10-31/models/english-bidirectional-distsim.tagger' | |
| jar = '/<PATH>/stanford-postagger-full-2016-10-31/stanford-postagger.jar' | |
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
| from mako.template import Template | |
| from mako.runtime import Context | |
| tpl_xml = ''' | |
| <doc> | |
| % for i in data: | |
| <p>${i}</p> | |
| % endfor | |
| </doc> | |
| ''' |