Skip to content

Instantly share code, notes, and snippets.

View machi1990's full-sized avatar
💭
I may be slow to respond.

Manyanda Chitimbo machi1990

💭
I may be slow to respond.
  • Red Hat
  • Paris
View GitHub Profile
@machi1990
machi1990 / violin_plots_for_upgrade_analysis.py
Last active May 13, 2026 15:25
violin plots of version activation time
#!/usr/bin/env python3
"""
Violin Plot Distribution Analysis for ARO-HCP Upgrades
Generates version activation time distribution visualization using violin plots
to show the full distribution of data.
Outliers removed using IQR (Interquartile Range) method - standard statistical approach.
"""
@machi1990
machi1990 / analysis.py
Last active May 13, 2026 10:58
Weekly stacked view of the upgrade phases
#!/usr/bin/env python3
"""
Comprehensive ARO-HCP Upgrade Analysis Visualization Script
This script generates three key visualizations from ARO-HCP upgrade data:
1. STACKED PHASE DURATION GRAPH (upgrade_phases_stacked_by_week.png)
- Shows breakdown of time spent in each upgrade phase by week
- Phases: Creation→Backend, Backend Selection, Backend→CS Pickup,
CS Pickup→Trigger, Hypershift Reaction
@machi1990
machi1990 / analysis.py
Created May 12, 2026 12:03
upgrade pickup time after initial cluster creation analysis
#!/usr/bin/env python3
"""
Time from cluster creation to backend upgrade decision
Combines all findings into one complete view
"""
import json
import matplotlib.pyplot as plt
import numpy as np
from pathlib import Path
@machi1990
machi1990 / plot_upgrades_by_cluster.py
Last active May 12, 2026 12:05
plot_upgrades_by_cluster.py
#!/usr/bin/env python3
"""
Create separate cluster upgrade analysis graphs for each cluster
"""
import json
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import matplotlib.dates as mdates
from datetime import datetime
const { typeDefs, resolvers, contextCreator, services } = buildGraphbackAPI(schema, {
dataProviderCreator: createKnexDbProvider(dbConfig),
plugins: []
});
const apolloServer = new ApolloServer({
typeDefs,
resolvers,
context: contextCreator
})
"""
@oneToOne key: 'user_id'
"""
@machi1990
machi1990 / one-to-one-annotation.graphql
Created July 22, 2020 10:55
one to one annotation
"""
@oneToOne(key: 'user_id')
"""