Skip to content

Instantly share code, notes, and snippets.

View emilebosch's full-sized avatar
🏠
Working from home

Emile emilebosch

🏠
Working from home
  • Lisbon
  • 18:36 (UTC +02:00)
View GitHub Profile
@thegedge
thegedge / find_unused_methods.rb
Last active May 19, 2020 08:17
Find unused Ruby methods (expect false positives) via static analysis
#!/usr/bin/env ruby
# frozen_string_literal: true
require "csv"
require "set"
begin
require "erubi"
rescue LoadError
end
@thegedge
thegedge / find_cohesive_changes.rb
Last active May 14, 2020 13:42
Attempt to find cohesive sets of methods in a Ruby file, based on how it's changed with other files in a repo
#!/usr/bin/ruby --disable-gems
#
# # Prerequisites
#
# # Example usage
#
# find_cohesive_changes <file>
#
require "open3"
import os
import pickle
import warnings
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from tensorflow.keras.callbacks import EarlyStopping
from tensorflow.keras.layers import Dense
from tensorflow.keras.layers import Dropout