Safe program merges at scale: A grand challenge for program repair research

Since the computing world began embracing an open-source approach to programming, building software has become increasingly collaborative. Members of development teams with as few as two developers and as many as thousands are simultaneously editing different components in creating software systems and keeping them functioning optimally, and a three-way merge is the mechanism for integrating changes from these individual contributors. But with so many people independently altering code, it’s unsurprising that updates don’t always synchronize, resulting in bad merges. Bad […]

Read more

Use heroicons in your Django and Jinja templates

heroicons Use heroicons in your Django and Jinja templates. Requirements Python 3.6 to 3.9 supported. Django 2.2 to 3.2 supported. Are your tests slow? Check out my book Speed Up Your Django Tests which covers loads of best practices so you can write faster, more accurate tests. Usage The heroicons package supports both Django templates and Jinja templates. Follow the appropriate guide below. Django templates Install with python -m pip install heroicons[django]. Add to your INSTALLED_APPS: INSTALLED_APPS = [ …, […]

Read more

A repository with scraping code and soccer dataset from understat.com

UNDERSTAT – SHOTS DATASET As many people interested in soccer analytics know, Understat is an amazing source of information. They provide Expected Goals (xG) stats for every shot taken in the top 5 leagues in Europe, as well as the Russian league. After watching an awesome tutorial by McKay Johns (great channel btw, loads of resources for beginners in soccer analytics), I decided to write some code to scrape all the shots data available at Understat. As a consequence I […]

Read more

Zero-Shot Voice Style Transfer with Only Autoencoder Loss

AutoVC This is an unofficial implementation of AutoVC based on the official one. The D-Vector and vocoder are from yistlin/dvector and yistLin/universal-vocoder respectively. This implementation supports torch.jit, so the full model can be loaded with simply one line: model = torch.jit.load(model_path) Pre-trained models are available here. Preprocessing python preprocess.py [–seg_len seg] [–n_workers workers] data_dir: The directory of speakers. save_dir: The directory to save the processed files. encoder_path: The path of pre-trained D-Vector. seg: The length of segments for training. workers: […]

Read more

Draw your telegram bot in draw.io and generate its code

drawyourbot Draw your bot is an open sourced project made to let people construct chat bots without coding or with minimal coding.You can just draw your chat bot logic in draw.io (http://diagrams.net/) and generate its code.This project will be most useful for those who need to make simple support or survey bot.It could also save some time for those who are building really complex bots. In that cases generated bot can bejust a start point. Install requirements First you need […]

Read more

Learning Multimodal Violence Detection under Weak Supervision

XDVioDet Official implementation of “Not only Look, but also Listen: Learning Multimodal Violence Detection under Weak Supervision” ECCV2020. The project website is XD-Violence. The features can be downloaded from our project website. where we oversample each video frame with the “5-crop” augment, “5-crop” means cropping images into the center and four corners. _0.npy is the center, _1~ _4.npy is the corners. How to train download or extract the features. use make_list.py in the list folder to generate the training and […]

Read more

Registration form with RDS AWS database and facial recognition via OpenCV

Formulario_Cadastro_RDS_OpenCV The algorithm performs a simple user registration (Name, CPF, E-mail and Telephone) in an Amazon RDS database and also performs the storage, training and facial recognition of the user’s face to identify the users already registered in the system in a next time the user is seen. You will need to install the libraries below: numpy OpenCV mysql-connector Creating RDS-MySQL instance on AWS Access the “AWS Management Console” Open the services menu and select the RDS option Select the […]

Read more

A command line tool to query source code from your current Python env

wxc wxc (pronounced “which”) allows you to inspect source code in your Python environment from the command line. It is based on the inspect module from thestandard library. In essence, $ wxc pandas is equivalent to $ python -c “import pandas; print(pandas.__file__)” wxc can also be used to navigate source code, by locating classes and functions by file:line number $ wxc pandas.DataFrame /path/to/your/env/site-packages/pandas/core/frame.py:319 which is extremely convenient when combined with augmented terminal applications such as iterm2. Installation $ pip install […]

Read more

A simple Python AMI client

Python AMI Client A simple Python AMI client See the code of conduct. Install Install asterisk-ami pip install asterisk-ami Install latest asterisk-ami pip install git+https://github.com/ettoreleandrotognoli/python-ami Usage Connect from asterisk.ami import AMIClient client = AMIClient(address=’127.0.0.1′,port=5038) client.login(username=’username’,secret=’password’) Disconnect client.logoff() Send an action from asterisk.ami import SimpleAction action = SimpleAction( ‘Originate’, Channel=’SIP/2010′, Exten=’2010′, Priority=1, Context=’default’, CallerID=’python’, ) client.send_action(action) Send an action with adapter from asterisk.ami import AMIClientAdapter adapter = AMIClientAdapter(client) adapter.Originate( Channel=’SIP/2010′, Exten=’2010′, Priority=1, Context=’default’, CallerID=’python’, ) Synchronous Response #without adapter future = […]

Read more
1 33 34 35 36 37 51