Skip to content

Instantly share code, notes, and snippets.

View feststelltaste's full-sized avatar

Markus Harrer feststelltaste

View GitHub Profile
@feststelltaste
feststelltaste / release_notebooks.py
Last active August 20, 2020 18:25
Python script for discreete assistance
#!/usr/bin/env python
# coding: utf-8
from os import makedirs, path
from shutil import copyfile
import json
import copy
# hide existing code and results and add an empty code cell or hide answer to questions
def release_guided_workshop_file(directory, filepath):
@feststelltaste
feststelltaste / apt.txt
Last active January 31, 2020 18:22
Git Analysis Rename Problem (Draft)
git
@feststelltaste
feststelltaste / apt.txt
Last active August 19, 2020 07:55
Fitness Function for Detecting Cyclic Package Dependencies with Jupyter, jQAssistant and Neo4j
openjdk-8-jdk
@feststelltaste
feststelltaste / checking_modularization.ipynb
Last active October 31, 2019 08:58
Checking the modularization based on changes (3D Version)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
git clone https://github.com/torvalds/linux
cd linux
find . -type d -name ".git" -prune -o -type f \( -iname "*.c" -o -iname "*.h" \) | xargs -n1 git blame -w -f >> git_blame.log
@feststelltaste
feststelltaste / git_cheat_sheet.md
Last active December 4, 2018 20:46
Software Archaeology with Git

Start to map author names to persons via .mailmap file

Command

git shortlog -sne | cut -f2 | sort > .mailmap

Example content of .mailmap

Ameya Pandilwar <ameya@ccs.neu.edu>
@feststelltaste
feststelltaste / ReviewCodeExample.java
Last active July 12, 2016 21:18
Exaggerated ReviewCodeExample
public class ReviewCodeExample {
public static String ID = "review.example";
public BigDecimal getFactor() {
return new BigDecimal(0.1);
}
public Collection<String> getCarNames() {
List<Car> cars = getCarsFromDatabase();