Add/remove license to/from source files

Utility to add/remove licenses to/from source files.Supports processing any combination of globs, files, and directories (recurse).Pruning options allow skipping non-licensing files. licenser uses file identification techniques to infer the format of the license.Mainly, resolves how text is commented for that particular source file.Then, string matching is used to detect the presence of the license in source files.This allows licenser to be an idempotent operation. Grammar of source file comments Commented text in source code can be represented by the location […]

Read more

Reads in an image of an album cover and and pulls the lyrics from an API to create an image to create “art”

Reads in an image of an album cover and and pulls the lyrics from an API to create an image to create “art”, which consists of the colored lyrics to mirror the original. Usage Copy the covers you want use in the ./input/ folder. Name the images from 00_foo.png to XX_bar.jpg. Create a songs.txt file in the ./input/ folder. Enter the name of the song (that should be contained by the new image) for 00_foo.png in the first line, second […]

Read more

Multi-processing capable print-like logger for Python

Multi-processing capable print-like logger for Python Requirements and Installation Python 3.8+ is required Pip pip install mplogger Manual Poetry and (optionally) GNU Make are required. git clone https://github.com/ELTE-DH/webarticlecurator.git Run make On Windows or without Make (after cloning the repository): poetry install –no-root poetry build poetry run pip install –upgrade dist/*.whl (the correct filename must be specified on Windows) Usage Single-process from MLPlogger import Logger #    

Read more

Utilizing numpy to hold the image data, and to allow us to easily modify the image data

The goal of this project is to do some very simple image processing tasks, utilizing numpy to hold the image data, and to allow us to easily modify the image data. I utilize matplotlib and numpy. Part 1: Returns a new pattern that contains only the red, green or blue channel of the image based on 0 = red, 1 = green, 2 = blue. Part 2: Returns permutated image based on perm given. perm is a list of 0,1,2 […]

Read more

Robust Video Matting and background composing in one model by using onnxruntime

RobustVideoMatting and background composing in one model by using onnxruntime. pip install -r requirements.txt python infer_cam_onnx_freeze.py Press key 1~4 for changing 4 background images in folder backgrounds, press key 5 for using video as background, press 0 for green background, press q for raw web-cam stream. Solve memory leak, which may caused by cap.read() GitHub View Github    

Read more

Project developed to collect information from XML files exported by Yet Another Bacnet Explorer (Yabe)

SEJA BEM-VINDO A ESTE REPOSITÓRIO!!! Note que este é o meu segundo projeto em Python e o segundo compartilhado no GitHub. Cada dia que passa eu aprendo um pouco mais sobre o Python e assim irei melhorando o código do programa. Instruções Fork este repositório; Clone seu repositório forked; Adicione seus scripts; Commit & Push; Crie um pull request; Dê uma estrela para este repositório; Aguarde que o seu pull request solicitado vire um merge; Comemore, seu primeiro passo para […]

Read more

ML and NLP Research Highlights of 2021

Credit for the title image: Liu et al. (2021) 2021 saw many exciting advances in machine learning (ML) and natural language processing (NLP). In this post, I will cover the papers and research areas that I found most inspiring. I tried to cover the papers that I was aware of but likely missed many relevant ones. Feel free to highlight them as well as ones that you found inspiring in the comments. I discuss the following highlights: Universal Models Massive […]

Read more

A script takes the website name as input and returns its dns records

DNS Record This script takes the website name as input and returns its dns records. #Requirements to run this file: External library called dnspython has been used here and it can be installed easily by using the following command: pip install -r requirements.txt #How to use this script? 1.Install the requirements. Type the following command python dns_record.py 3.It will ask for a website: You can give any website name for example: google.com GitHub View Github    

Read more

Jupyter Notebook (Python) to generate html report on historic redlining and modern racial composition in Houston for PHW278L final project

Redlining, Race-Exclusive Deed Restriction Language, and Neighborhood Racial Composition in Houston This report investigates the effects of systemic racism in Houston by examining recent racial composition and racial composition changes of Houston neighborhoods intersected with historial geographic/race-based lending restriction (redlining) and race-based deed restrictions. Though, this analysis was not formally peer-reviewed, it recieved a 100% grade for the course. Sources for data and graphics can be found in the HTML report. Example Images Houston Historical Redlining Grade with Modern City […]

Read more
1 3 4 5 6 7 49