Skip to content

Instantly share code, notes, and snippets.

@math-a3k
math-a3k / gist:35acc4f10727e611afaef071a77650fb
Created July 2, 2023 21:18
On Github’s Copilot copyright concerns
======================================
On Github’s Copilot copyright concerns
======================================
(Submission for https://www.fsf.org/blogs/licensing/fsf-funded-call-for-white-papers-on-philosophical-and-legal-questions-around-copilot)
In Software, a machine-learning model is the application of a mathematical model - usually from Probability and Statistics - to the decision process.
The same mathematical model can be implemented to perform an analysis on other realms - i.e. in gene sequencing it may be called a Bioinformatics model.
@math-a3k
math-a3k / cond_dec_func_graph.py
Last active December 10, 2021 07:43
Conditional Decision Function Graphing
# Adapted from https://gist.github.com/math-a3k/4f660fcc7976a63049b92feed77ca759
from itertools import combinations
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from matplotlib.colors import ListedColormap
from scipy.special import comb
from sklearn.ensemble import HistGradientBoostingClassifier
@math-a3k
math-a3k / dec_func_graph.py
Created November 8, 2021 21:57
Decision Function graphing
from itertools import combinations
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from matplotlib.colors import ListedColormap
from scipy.special import comb
from sklearn.ensemble import HistGradientBoostingClassifier
matplotlib.use("GTK3Cairo")
np.random.seed(123456)
@math-a3k
math-a3k / update-po-plurals.py
Created November 24, 2019 23:25
A shamefull, bad, ugly and dirty script that will add the remaining entries for updating the plurals of a po file
#
import argparse
from sys import stdout
parser = argparse.ArgumentParser(
description='Updates the plural forms of a .po from initial to final')
parser.add_argument('pofile', type=str, help='Po file to be updated')
parser.add_argument("--from", type=int, dest='from_plural',